A button that switches between an on and off visual state, often used for formatting toolbars.
Loading component...
Run the following command to add this component to your project:
Import the component directly from the package:
import { Toggle } from "@static-ui/ui"Common props available for this component:
| Prop | Type | Description |
|---|---|---|
| className | string | Additional CSS classes to apply. |
Uses `aria-pressed` to indicate the pressed state. Keyboard accessible via `Space` or `Enter`.