Controlled
Bold off
API Reference
Toggle
A two-state button built on Base UI Toggle with variant and size styling.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default' | 'ghost' | 'default' | Visual style of the toggle |
| size | 'sm' | 'default' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg' | 'default' | Size of the toggle |
| className | string | - | Additional CSS classes |
| ...props | React.ComponentProps<typeof BaseToggle> | - | Base UI Toggle props including pressed, onPressedChange, disabled |