Toggle Sidebar B
header.lightDarkMode D

Pin Input

Per-character input for short codes. Similar to InputOTP; PinInput is the more general reka-ui primitive (any pattern, any length), InputOTP is the OTP-tuned wrapper with paste support and complete event.

Default

Four-digit pin.

With separator

Split slots into groups with PinInputSeparator.

Mask

Pass mask to hide entered characters.

API Reference

Props, events, and slots for each sub-component.

PinInput

Props

PropTypeDefaultDescription
modelValuestring[][]Pin value as an array of single characters. Supports v-model.
type"text" | "number" | "password""text"Input type for each slot.
maskbooleanfalseMask entered values (show dots).

Events

EventDescription
update:modelValueFires as characters are entered. Enables v-model.
completeFires when every slot is filled.

PinInputSlot

Props

PropTypeDefaultDescription
indexnumberPosition of this slot (0-based). Forwards to reka-ui PinInputInput.

PinInputGroup / PinInputSeparator

Props

PropTypeDefaultDescription
classstringGroup wraps a run of slots; Separator draws a divider (default slot overrides the dash).