Input OTP

A one-time code typed into separate boxes.

The snippet an agent gets

InputOTP.tsx
import { InputOTP } from '@basiiik/ui';<InputOTP label="Verification code" />

From get_component_snippet, with the required props filled in from the spec. Every snippet is type-checked against the library before it ships.

  • Example values were filled in for the required prop label: replace them with your own.
  • Empty, Filled and Focused follow the value and focus; Error is the error prop; Disabled is the disabled attribute.
  • Storybook: Inputs/Input OTP.