Component
Toggles are used to switch between two states. They are commonly used in settings, forms, and more.
View component changelogpreview
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | null | Accent Color of the toggled item |
| Shortcut | Description |
|---|---|
Tab | Moves focus to the toggle button. |
Space | Toggles the pressed state. |
Enter | Toggles the pressed state. |
| Reference | What Rad UI follows |
|---|---|
Uses button semantics with aria-pressed to expose the current on or off state. |