PinInput
A verification code input with individual character fields. Built on Ark UI .
Import
import { PinInput } from '@grannyshot/ui'Usage
<PinInput label="Verification Code" length={4} />Masked
<PinInput label="Password" length={6} mask />Sizes
<PinInput size="sm" length={4} />
<PinInput size="md" length={4} />
<PinInput size="lg" length={4} />API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'md' | Input size |
label | string | — | Label text |
length | number | 4 | Number of input fields |
mask | boolean | false | Hide characters (password style) |
placeholder | string | — | Placeholder for each field |
disabled | boolean | false | Disabled state |
className | string | — | Additional CSS classes |
Last updated on