primitives/@mihcm/ui·v0.21.0·stable
InputOTP
One-time password / verification code input with individual character slots. Powered by input-otp.
Props
The full prop API for InputOTP. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
maxLength | number | — | Total number of characters. | 0.5.0 |
value | string | — | Controlled value. | 0.5.0 |
onChange | (value: string) => void | — | Called when value changes. | 0.5.0 |
disabled | boolean | false | Disables all slots. | 0.5.0 |
Import
import { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from '@mihcm/ui/InputOTP';