9.5k

Input OTP

A segmented input for one-time passwords and verification codes.

API Reference

Installation

Usage

API Reference

This component is built on top of input-otp.

InputOTP

Root component for the OTP input. Accepts all props from OTPInput plus the following:

For the full list of props, see the input-otp documentation.

InputOTPGroup

Container for one or more OTP slots.

InputOTPSlot

Renders a single OTP slot for the provided index.

InputOTPSeparator

Visual separator between slot groups.

Examples

Large

With Separator

With Label

Digits Only

Invalid

Auto Validation

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).