Skip to content
  • Android
  • iOS
  • Web

OTP Input

Collect a short verification code.

Engine API NInputOtpnayan-ui/components

Live examples

Example.tsx

Attributes

NInputOtp attributes
NameTypeDefaultDetails
maxLengthnumberOptional
valuestringOptional
defaultValuestringOptional
onChange((value: string) => void)Optional
disabledbooleanOptional
patternstringOptional
separatorIndicesreadonly number[]OptionalZero-based slot indices after which to draw a separator.
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
accessibilityLabelstringOptional

Tags