Park UI Logo
GitHub
Components
Pin input

Pin Input

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

import { PinInput, type PinInputProps } from '~/components/ui/pin-input'

export const Demo = (props: PinInputProps) => {
  return (
    <PinInput placeholder="0" onValueComplete={(e) => alert(e.valueAsString)} {...props}>
      Pin Input
    </PinInput>
  )
}

Usage

import { PinInput } from '~/components/ui/pin-input'

Installation

npx @park-ui/cli components add pin-input