Skip to content

Pin Input

For pin or verification codes with auto-focus transfer and masking options

Value:""
import { PinInput } from '@fintech-sandpit/ui/react';
return (
<PinInput
count={6}
type="numeric"
otp
/>
);
NameTypeDefaultDescription
sizeSizemdSize of the pin input
countnumber4Amount of input fields
typePinTypealphanumericType of the pin input
placeholderstringPlaceholder text of the pin input
invalidbooleanfalseWhether the pin input is invalid
disabledbooleanfalseWhether the pin input is disabled
readOnlybooleanfalseWhether the pin input is read only
namestringName of the pin input
otpbooleanfalseWhether the pin input is an OTP input
NameTypeDescription
onComplete(value: string) => voidEvent handler for when the pin input is completed
type PinType = 'alphanumeric' | 'numeric' | 'alphabetic'
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'