npx shadcn add https://hq-ui.vercel.app/r/input-otp
Use the <InputOTPSeparator /> component to add a separator between input groups.
Use the disabled prop to disable the input.
Use the value and onChange props to control the input value.
Use aria-invalid on the slots to show an error state.
A common pattern for PIN codes. This uses the pattern={REGEXP_ONLY_DIGITS} prop.
Use REGEXP_ONLY_DIGITS_AND_CHARS to accept both letters and numbers.