BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/neobrutalism/input-otp

input-otp

neobrutalism/input-otp
FreeComponent

neobrutalism publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by neobrutalism on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://neobrutalism.com/r/input-otp.json

Source

input-otp.tsxneobrutalism.com/r/input-otp.json
1"use client"
2
3import * as React from "react"
4import { OTPInput, OTPInputContext } from "input-otp"
5import { MinusIcon } from "lucide-react"
6
7import { cn } from "@/lib/utils"
8
9function InputOTP({
10 className,
11 containerClassName,
12 ...props
13}: React.ComponentProps<typeof OTPInput> & {
14 containerClassName?: string
15}) {
16 return (
17 <OTPInput
18 data-slot="input-otp"
19 containerClassName={cn(
20 "cn-input-otp flex items-center has-disabled:opacity-50",
21 containerClassName
22 )}
23 spellCheck={false}
24 className={cn("disabled:cursor-not-allowed", className)}
25 {...props}
26 />
27 )
28}
29
30function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">) {
31 return (
32 <div
33 data-slot="input-otp-group"
34 className={cn(
35 "flex items-center rounded has-aria-invalid:border-destructive",
36 className
37 )}
38 {...props}
39 />
40 )
41}
42
43function InputOTPSlot({
44 index,
45 className,
46 ...props
47}: React.ComponentProps<"div"> & {
48 index: number
49}) {
50 const inputOTPContext = React.useContext(OTPInputContext)
51 const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {}
52
53 return (
54 <div
55 data-slot="input-otp-slot"
56 data-active={isActive}
57 className={cn(
58 "relative flex size-8 items-center justify-center border-y-2 border-r-2 bg-input text-sm shadow-sm transition-all outline-none first:rounded-l first:border-l-2 last:rounded-r aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:outline-2 data-[active=true]:outline-primary data-[active=true]:aria-invalid:border-destructive",
59 className
60 )}
61 {...props}
62 >
63 {char}
64 {hasFakeCaret && (
65 <div className="pointer-events-none absolute inset-0 flex items-center justify-center">
66 <div className="h-4 w-px animate-caret-blink bg-foreground duration-1000" />
67 </div>
68 )}
69 </div>
70 )
71}
72
73function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) {
74 return (
75 <div
76 data-slot="input-otp-separator"
77 className="flex items-center [&_svg:not([class*='size-'])]:size-4"
78 role="separator"
79 {...props}
80 >
81 <MinusIcon />
82 </div>
83 )
84}
85
86export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }

What it pulls in

npm packages

  • @base-ui/react
  • input-otp
  • lucide-react

Files it writes

  • input-otp.tsx

Facts

Registry
neobrutalism
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on neobrutalism neobrutalism.com neobrutalism/neobrutalism on GitHub Raw registry item This item as JSON

More from neobrutalism

All 54 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionneobrutalismComponentsFree2 deps
alertalertneobrutalismComponentsFree2 deps
alert-dialogalert-dialogneobrutalismComponentsFree1 dep
aspect-ratioaspect-rationeobrutalismComponentsFree1 dep
avataravatarneobrutalismComponentsFree1 dep
badgebadgeneobrutalismComponentsFree2 deps
breadcrumbbreadcrumbneobrutalismComponentsFree2 deps
buttonbuttonneobrutalismComponentsFree2 deps

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