A toggle control that instantly enables or disables a setting with a single click.
Loading component...
Run the following command to add this component to your project:
Import the component directly from the package:
import { Switch } from "@static-ui/ui"Common props available for this component:
| Prop | Type | Description |
|---|---|---|
| className | string | Additional CSS classes to apply. |
Uses `role="switch"` with `aria-checked` to indicate the toggle state. Supports keyboard activation via `Space` or `Enter`.