Input OTP

A one-time passcode field split into slots.

components/ui/input-otp.tsx

Installation

npx betterone-ds add input-otp

Props

PropTypeDefault
maxLengthnumberrequired
patternstringdigits

Accessibility

  • Supports paste and the one-time-code autocomplete hint.