UNPKG

@stanfordspezi/spezi-web-design-system

Version:

Stanford Biodesign Digital Health Spezi Web Design System

15 lines (14 loc) 958 B
import { OTPInput } from 'input-otp'; import { ComponentProps } from 'react'; export declare const InputOTPRoot: ({ className, containerClassName, ...props }: ComponentProps<typeof OTPInput>) => import("react").JSX.Element; export declare const InputOTPGroup: ({ className, ...props }: ComponentProps<"div">) => import("react").JSX.Element; export declare const InputOTPSlot: ({ index, className, ...props }: ComponentProps<"div"> & { index: number; }) => import("react").JSX.Element; export declare const InputOTPSeparator: ({ ...props }: ComponentProps<"div">) => import("react").JSX.Element; /** * Accessible one time password input. * InputOTP renders maxLength of slots for your secret - see Components/InputOTP#Default story * If you need to customize rendering - see Components/InputOTP#Custom story * */ export declare const InputOTP: ({ maxLength, ...props }: Omit<ComponentProps<typeof OTPInput>, "render">) => import("react").JSX.Element;