Glasswave UI

Input OTP

One-time code slots using input-otp.

Input OTP

Installation

1pnpm dlx shadcn@latest add @glasswave/input-otp

Usage

1import {2  InputOTP,3  InputOTPGroup,4  InputOTPSlot,5  InputOTPSeparator,6} from "glasswave";7 8<InputOTP maxLength={6}>9  <InputOTPGroup>10    <InputOTPSlot index={0} />1112  </InputOTPGroup>13  <InputOTPSeparator />14  <InputOTPGroup>…</InputOTPGroup>15</InputOTP>

API Reference

See the input-otp documentation.