Small on/off or pressed/unpressed control.
1234567123456789101112131415161718| Prop | Type | Default | Description |
|---|---|---|---|
pressed? | boolean | — | Controlled pressed state (optional) |
defaultPressed? | boolean | false | Default pressed state (optional) |
onPressedChange? | (pressed: boolean) => void | — | Callback when pressed state changes (optional) |
disabled? | boolean | false | Disable the toggle (optional) |
aria-label? | string | — | Accessibility label (required for icon-only toggles) |
className? | string | — | Additional CSS classes (optional) |