PinInput API
import { PinInput } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
children | React.ReactNode | |
density | 'default' | 'compact' | 'comfortable' | |
description | string | |
disabled | boolean | |
error | string | |
invalid | boolean | |
label | string | |
length | number | |
mask | boolean | |
mode | 'numeric' | 'alpha' | 'alphanumeric' | |
name | string | |
onChange | (value: string) => void | |
onComplete | (value: string) => void | |
placeholderChar | string | |
readOnly | boolean | |
required | boolean | |
shape | 'default' | 'square' | 'soft' | |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
value | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-pin-input>
PinInput renders the ui-pin-input custom element from @editora/ui-core, which can also be used without React.
Attributes: aria-describedby, aria-description, density, description, disabled, error, invalid, label, length, mask, mode, name, placeholder-char, readonly, required, shape, size, value
Events: change, complete, input