nextuiq
Version:
NextUIQ is a modern, lightweight, and developer-friendly UI component library for React and Next.js. Built with TypeScript and Tailwind CSS, it offers customizable, accessible, and performance-optimized components with built-in dark mode, theme customizat
14 lines (13 loc) • 433 B
TypeScript
export interface SwitchProps {
label: string;
defaultChecked?: boolean;
disabled?: boolean;
onChange?: (checked: boolean) => void;
color?: "blue" | "gray";
id?: string;
name?: string;
required?: boolean;
"aria-label"?: string;
"aria-describedby"?: string;
}
export declare const Switch: import('react').ForwardRefExoticComponent<SwitchProps & import('react').RefAttributes<HTMLInputElement>>;