Skip to Content
ComponentsPinInput

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

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Input size
labelstringLabel text
lengthnumber4Number of input fields
maskbooleanfalseHide characters (password style)
placeholderstringPlaceholder for each field
disabledbooleanfalseDisabled state
classNamestringAdditional CSS classes
Last updated on