- Accordion
- AI Elements
- Alert
- Alert Dialog
- Avatar
- Badge
- Breadcrumb
- Button
- ButtonGroup
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Date Picker
- Dialog
- Dropdown Menu
- Field
- File Picker
- Input
- InputGroup
- InputOTP
- Loader
- Menubar
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Sheet
- Sonner
- Table
- Tabs
- Textarea
- Toggle
- Tooltip
InputOTP
One-time password input component with configurable length, separators, and slot groups. Commonly used for 2FA verification codes.
Import
Live Demo
One-time password input with configurable groups.
Simple 6-digit
With separator (2+2+2)
Props
| Name | Type | Default | Description |
|---|---|---|---|
| maxLength | number | — | Maximum number of characters |
| containerClassName | string | — | CSS class for the container |
Examples
Simple 6-Digit
With Separator (2+2+2)
Grouped format common in verification codes.