| Prop | Default | Type |
|---|---|---|
as | 'div' | AsTag | ComponentThe element or component this component should render as. Can be overwritten by |
asChild | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. | |
defaultValue | string[][]The default value of the pin inputs when it is initially rendered. Use when you do not need to control its checked state. | |
dir | 'ltr' | 'rtl'The reading direction of the combobox when applicable. | |
disabled | booleanWhen | |
id | stringId of the element | |
mask | booleanWhen | |
modelValue | string[] | nullThe controlled checked state of the pin input. Can be binded as | |
name | stringThe name of the field. Submitted with its owning form as part of a name/value pair. | |
otp | booleanWhen | |
placeholder | '' | stringThe placeholder character to use for empty pin-inputs. |
required | booleanWhen | |
type | 'text' as any | 'number' | 'text'Input type for the inputs. |
| Emit | Payload |
|---|---|
complete | [value: string[]] |
update:modelValue | [value: string[]]Event handler called when the value changes. |
| Slots (default) | Payload |
|---|---|
modelValue | string[]Current input values |
