Toggle
On/off switch for tool options.
Loading…
On/off switch for tool options.
Loading…
Boolean tool options — show grid, snap to pixel, include metadata.
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Option label. |
| checked | boolean | — | Current state. |
| onCheckedChange | (checked: boolean) => void | — | Change handler. |
| className | string | — | Optional CSS class. |
Also copy lib/utils.ts (cn helper):