BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/input-otp

input-otp

showcase-elevenlabs/input-otp
FreeComponent

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/input-otp.json

Source

ui/input-otp.tsxraw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/input-otp.json
1"use client"
2
3import * as React from "react"
4import { OTPInput, OTPInputContext } from "input-otp"
5import { Minus } from "lucide-react"
6
7import { cn } from "@/lib/utils"
8
9const InputOTP = React.forwardRef<
10 React.ElementRef<typeof OTPInput>,
11 React.ComponentPropsWithoutRef<typeof OTPInput>
12>(({ className, containerClassName, ...props }, ref) => (
13 <OTPInput
14 ref={ref}
15 containerClassName={cn(
16 "flex items-center gap-2 has-[:disabled]:opacity-50",
17 containerClassName
18 )}
19 className={cn("disabled:cursor-not-allowed", className)}
20 {...props}
21 />
22))
23InputOTP.displayName = "InputOTP"
24
25const InputOTPGroup = React.forwardRef<
26 React.ElementRef<"div">,
27 React.ComponentPropsWithoutRef<"div">
28>(({ className, ...props }, ref) => (
29 <div ref={ref} className={cn("flex items-center", className)} {...props} />
30))
31InputOTPGroup.displayName = "InputOTPGroup"
32
33const InputOTPSlot = React.forwardRef<
34 React.ElementRef<"div">,
35 React.ComponentPropsWithoutRef<"div"> & { index: number }
36>(({ index, className, ...props }, ref) => {
37 const inputOTPContext = React.useContext(OTPInputContext)
38 const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]
39
40 return (
41 <div
42 ref={ref}
43 className={cn(
44 "relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
45 isActive && "z-10 ring-1 ring-ring",
46 className
47 )}
48 {...props}
49 >
50 {char}
51 {hasFakeCaret && (
52 <div className="pointer-events-none absolute inset-0 flex items-center justify-center">
53 <div className="h-4 w-px animate-caret-blink bg-foreground duration-1000" />
54 </div>
55 )}
56 </div>
57 )
58})
59InputOTPSlot.displayName = "InputOTPSlot"
60
61const InputOTPSeparator = React.forwardRef<
62 React.ElementRef<"div">,
63 React.ComponentPropsWithoutRef<"div">
64>(({ ...props }, ref) => (
65 <div ref={ref} role="separator" {...props}>
66 <Minus />
67 </div>
68))
69InputOTPSeparator.displayName = "InputOTPSeparator"
70
71export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }

What it pulls in

npm packages

  • input-otp

Files it writes

  • registry/new-york/ui/input-otp.tsx

Facts

Registry
shadcn/ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

showcase.elevenlabs.io elevenlabs/showcase on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 357 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn/uiComponentsFree1 dep
alertalertshadcn/uiComponentsFreeno deps
alert-dialogalert-dialogshadcn/uiComponentsFree1 dep
aspect-ratioaspect-ratioshadcn/uiComponentsFree1 dep
avataravatarshadcn/uiComponentsFree1 dep
badgebadgeshadcn/uiComponentsFree1 dep
breadcrumbbreadcrumbshadcn/uiComponentsFree1 dep
buttonbuttonshadcn/uiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex