Components ยท UI Primitives
InputOTP
One-time password input with individual digit slots.
429
Props
| Prop | Type | Default | Description |
|---|---|---|---|
length | number | 6 | Number of digit slots. |
value | string | โ | Controlled value. |
onChange | (value) => void | โ | Change callback. |
Reference API for the design concept — align names and types with your implementation.
Guidelines
- Use in the active theme; the component adapts to light and dark automatically.
- Keep the purple accent for interactive states only โ never as a fill or background.
- Copy the markup from the Code tab and wire it to
base.csstokens.