MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / InputOTP

Function InputOTP

packages/react/src/components/input-otp.tsx:9–24  ·  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("flex items-center gap-2 has-disabled:opacity-50", containerClassName)}
20 className={cn("disabled:cursor-not-allowed", className)}
21 {...props}
22 />
23 );
24}
25
26function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">) {
27 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected