checked? | boolean | — | No | Whether the toggle is checked/on (controlled mode). |
defaultChecked? | boolean | false | No | Default checked state (for uncontrolled mode). |
disabled? | boolean | false | No | Whether the toggle is disabled. |
color? | string | — | No | Custom color for the toggle when checked (hex, rgb, or named color). |
size? | 'sm' | 'md' | 'md' | No | Size variant of the toggle. |
onChange? | (checked: boolean) => void | — | No | Callback fired when the toggle state changes. |
className? | string | — | No | Additional CSS class name. |
aria-label? | string | — | No | ARIA label for accessibility. |
aria-describedby? | string | — | No | ARIA describedby for accessibility. |
id? | string | — | No | HTML id attribute. |
name? | string | — | No | HTML name attribute for form submission. |
value? | string | — | No | HTML value attribute for form submission. |