Function
InputOTP
({
className,
containerClassName,
...props
}: React.ComponentProps<typeof OTPInput> & {
containerClassName?: string
})
Source from the content-addressed store, hash-verified
| 7 | import { cn } from "@/lib/utils" |
| 8 | |
| 9 | function 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 | |
| 29 | function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">) { |
| 30 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected