Default

import { PinInput } from '@davaux/ui'

<PinInput />

Length

<PinInput length={4} />
<PinInput length={6} />
<PinInput length={8} />

Numeric only

<PinInput type="number" length={6} />

Masked (password style)

<PinInput mask length={4} />

Disabled

<PinInput disabled length={4} />

Props

PropTypeDefaultDescription
lengthnumber4Number of input boxes
type'alphanumeric'|'number''alphanumeric'Character type constraint
maskbooleanRenders each character as a password dot
placeholderstring'○'Placeholder shown in each empty box
disabledbooleanPrevents interaction
namestringForm field name for the hidden combined value