Skip to content

Pin Input

The PinInput component is used to capture sequences of numeric codes, such as PINs or verification codes, in a structured and user-friendly way.

  • Sequential input: Supports multiple inputs for each digit of the code.
  • Auto-focus support: Focuses the next input as users type.
  • Loading state: Can indicate processing or verification status.
  • Accessible design: Works with keyboard and screen readers.
  • Form-ready: Can be used inside modals or verification flows.
PropTypeDefaultDescription
valuestring""Current value of the input.
autoFocusbooleanfalseAutomatically focus this input when rendered.
isLoadingbooleanfalseDisplays a loading state to indicate processing.
disabledbooleanfalseDisables user interaction.
classstringOptional additional CSS classes.
stylestringInline style overrides.
  • Use autoFocus on the first input to guide users naturally through the PIN.
  • Keep the sequence length consistent for better UX.
  • Combine with isLoading or feedback mechanisms to indicate verification status.
  • Avoid placing critical actions elsewhere while PIN input is active.
  • Use clear spacing and alignment for readability of digits.