Park UI Logo
GitHub
Components
Pin input

Pin Input

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

Usage

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

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

Installation

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