MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / InputOTP

Function InputOTP

src/components/ui/input-otp.tsx:9–27  ·  view source on GitHub ↗
({
  className,
  containerClassName,
  ...props
}: React.ComponentProps<typeof OTPInput> & {
  containerClassName?: string
})

Source from the content-addressed store, hash-verified

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 "flex items-center gap-2 has-disabled:opacity-50",
21 containerClassName
22 )}
23 className={cn("disabled:cursor-not-allowed", className)}
24 {...props}
25 />
26 )
27}
28
29function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">) {
30 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected