shadcn/ui Input OTP
Accessible one-time password component with copy paste functionality.
Shadcn/ui Input OTP - Figma Component
Accessible one-time password component with copy paste functionality. This Figma component is part of our comprehensive design system that brings the popular shadcn/ui library into your design workflow.
Every Input OTP variant includes all the necessary states, properties, and styling options you need to create consistent, production-ready designs. The component seamlessly integrates with your existing Figma files and maintains full compatibility with the shadcn/ui React implementation.
Features
- Segmented input for one-time password entry
- Smart paste handling from clipboard
- Auto-advance to next digit on input
- Keyboard navigation between segments
- Customizable number of digits (4, 6, 8)
- Support for numeric or alphanumeric codes
Browse all 56 components
- Accordion5 variants
- Alert Dialog5 variants
- Alert4 variants
- Aspect Ratio2 variants
- Avatar8 variants
- Badge5 variants
- Breadcrumb5 variants
- Button Group10 variants
- Button13 variants
- Calendar9 variants
- Card4 variants
- Carousel5 variants
- Chart6 variants
- Checkbox6 variants
- Collapsible3 variants
- Combobox10 variants
- Command4 variants
- Context Menu8 variants
- Data Table1 variant
- Date Picker6 variants
- Dialog4 variants
- Direction1 variant
- Drawer3 variants
- Dropdown Menu11 variants
- Empty5 variants
- Field11 variants
- Hover Card2 variants
- Input Group12 variants
- Input OTP8 variants
- Input13 variants
- Item9 variants
- Kbd4 variants
- Label1 variant
- Menubar4 variants
- Navigation Menu1 variant
- Pagination2 variants
- Popover3 variants
- Progress2 variants
- Radio Group5 variants
- Resizable2 variants
- Scroll Area1 variant
- Select5 variants
- Separator3 variants
- Sheet2 variants
- Sidebar1 variant
- Skeleton5 variants
- Slider5 variants
- Sonner3 variants
- Spinner6 variants
- Switch5 variants
- Table2 variants
- Tabs4 variants
- Textarea4 variants
- Toggle Group6 variants
- Toggle4 variants
- Tooltip3 variants
OTP inputs in Figma
The shadcn/ui figma Input OTP handles verification codes and 2FA. Design authentication flows in Figma with segmented code inputs. This shadcn figma component supports smart paste and auto-advance between digits.
Smart paste handling
Design OTP inputs in Figma with the shadcn/ui figma component—codes paste automatically across all boxes. Prototype verification flows where users paste codes from SMS or email without manual entry.
Auto-advance feature
This shadcn figma Input OTP includes auto-advance to next digit. Design smooth authentication in Figma where focus moves automatically as users type, creating seamless code entry experiences.
Flexible code lengths
The shadcn/ui figma Input OTP supports 4, 6, or 8 digit codes. Design verification flows in Figma for different security levels, from simple PINs to high-security authentication codes.
Your questions, answered
Common questions about the Input OTP component in the shadcn/ui Figma kit.
OTP (One-Time Password) inputs are specialized for entering verification codes from SMS, email, or authenticator apps. They split codes into individual digit boxes, making it easier to enter and verify codes accurately during authentication.
Yes! When users paste a code (from SMS or email), the Input OTP automatically distributes digits across all boxes. This saves time and reduces errors compared to typing manually, especially important for time-sensitive verification flows.
As users type each digit, focus automatically moves to the next box. After entering the last digit, the form can auto-submit. Users can also press backspace to go back and correct mistakes, making the experience smooth and intuitive.
Absolutely. The component supports different code lengths: 4 digits (common for PINs), 6 digits (most 2FA apps), or 8+ digits (high-security codes). Configure based on your authentication system's requirements.
Yes, with proper ARIA labels and keyboard navigation. Screen readers announce the purpose and current position, while keyboard users can tab through or use arrow keys. The component is fully usable without a mouse.
Yes, this Figma Input OTP component matches the shadcn/ui implementation exactly, ensuring your verification code inputs work consistently from design to production with all smart features included.