UNPKG

rharuow-ds

Version:

Modern React Design System with 20 components and auto color system. Define only 2 colors (primary/secondary) and get automatic variations (hover, light, dark) with proper text contrast (WCAG AA). Includes: Table, Card, Button, Chip, Pagination, Input, Te

16 lines (15 loc) 568 B
import React from "react"; interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> { /** Whether the switch is currently on */ checked?: boolean; /** Callback fired when the switch is toggled */ onChange?: (checked: boolean) => void; /** Label displayed next to the switch */ label?: string; /** Position of the label relative to the switch */ labelPosition?: "left" | "right"; /** Size variant */ size?: "sm" | "md" | "lg"; } export declare const Switch: React.FC<SwitchProps>; export {};