Components•Input OTP
Components•Input OTP
Input OTP
A segmented one-time-code input for short verification flows.
Dependencies
input-otp
Copy below cli
npx shadcn add @bjork-ui/primitive-input-otpHow to use
import { BjorkInputOTP } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Input OTP primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
maxLengthnumberSet the number of code slots and handle the completed one-time-code value.
2
8
4
9
1
5
Verification code
Use for one-time codes and short grouped entry.
<BjorkInputOTP />