Ember UI LogoEmber UI
Components

Input Otp

A input-otp component

Preview

Loading...
import {  InputOTP,  InputOTPGroup,  InputOTPSeparator,  InputOTPSlot,} from "@/registry/axon/ui/input-otp";export default function InputOTPDemo() {  return (    <InputOTP maxLength={6}>      <InputOTPGroup>        <InputOTPSlot index={0} />        <InputOTPSlot index={1} />        <InputOTPSlot index={2} />      </InputOTPGroup>      <InputOTPSeparator />      <InputOTPGroup>        <InputOTPSlot index={3} />        <InputOTPSlot index={4} />        <InputOTPSlot index={5} />      </InputOTPGroup>    </InputOTP>  );}

Installation

CLI

npx shadcn@latest add @emberui/input-otp
yarn shadcn@latest add @emberui/input-otp
pnpm dlx shadcn@latest add @emberui/input-otp
bunx --bun shadcn@latest add @emberui/input-otp

Reference

This component is based on the shadcn/ui Input Otp component.

On this page