What problem does it solve?
This Skill simplifies the process of creating secure and user-friendly one-time password (OTP) input fields in Flutter applications using the shadcn_ui component library.
Core Features & Use Cases
- Accessible OTP Input: Provides
ShadInputOTP with built-in copy-paste support.
- Customizable Layout: Allows defining the OTP input structure using
ShadInputOTPGroup and ShadInputOTPSlot, with options for separators.
- Input Validation & Formatting: Supports
maxLength, keyboardType, and inputFormatters for precise control over user input.
- Form Integration: Offers
ShadInputOTPFormField for seamless integration into Flutter forms with validation.
- Use Case: Implement a verification code input screen in your Flutter app where users enter a 6-digit code sent via SMS.
Quick Start
Use ShadInputOTP with maxLength 6 and children containing three ShadInputOTPGroup widgets, each with three ShadInputOTPSlot widgets, to create a basic OTP input.