Toggle
Two-state pressable button. Use inside toolbars for formatting controls (bold, italic, align).
Default
Pressable two-state button.
Variants
default and outline.
Sizes
sm, default, lg.
With text
An icon followed by a text label.
Disabled
The disabled attribute blocks interaction.
API Reference
Toggle
Accessibility
Keyboard shortcuts and ARIA behavior.
- aria-pressed reflects the on/off state.
- Provide accessible text or an aria-label when the toggle is icon-only.