Components: Shadcn UI
Input Otp
Understand the design system and contribute to it
Component preview
The live preview for UI components is handled by components/atoms/codedocs/ComponentPreview.tsx. Use it directly inside MDX whenever you want a playground-style embed. Provide componentProps to set default values and propOptions to surface toggle-able props next to the preview.
Preview
1
2
3
4
5
6
Prop reference
Auto-generated from the component source
InputOTP
classNamecontainerClassName
React.ComponentProps<typeof OTPInput> & { containerClassName?: string; }
InputOTPGroup
className
React.ComponentProps<"div">
InputOTPSeparator
All props are forwarded to the underlying primitive.
React.ComponentProps<"div">
InputOTPSlot
indexclassName
React.ComponentProps<"div"> & { index: number; }
Code