MiHCM
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.

PropTypeDefaultDescriptionSince
maxLengthnumber—Total number of characters.0.5.0
valuestring—Controlled value.0.5.0
onChange(value: string) => void—Called when value changes.0.5.0
disabledbooleanfalseDisables all slots.0.5.0

Import

import { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from '@mihcm/ui/InputOTP';