Overview
Forms & inputs
Search for a command to run or a page to navigate to.
A specialized input component for entering one-time passwords and verification codes.
Enter the 6-digit code we sent you.
import { InputOtp } from "@strongtie/design-system/input-otp"Not installed yet? Add the package to your app:
This module exports the following components:
InputOTPInputOTPGroupInputOTPSlotInputOTPSeparator<InputOTP>| Prop | Type | Default | Description |
|---|---|---|---|
maxLength * | number | - | |
containerClassName | string | - | |
nonce | string | - | |
noScriptCSSFallback | string | null | - | |
onChange | ((newValue: string) => unknown) | - | |
onComplete | ((...args: any[]) => unknown) | - | |
pasteTransformer | ((pasted: string) => string) | - | |
pushPasswordManagerStrategy | none | increase-width | - | |
render | InputOTPRenderFn | - | |
textAlign | center | left | right | - | |
value | string | - |
<InputOTPSlot>| Prop | Type | Default | Description |
|---|---|---|---|
index * | number | - |