Anatomy
Anatomy
import {Toggle, ToggleGroup} from '@staffbase/spark';
<ToggleGroup>
<Toggle />
</ToggleGroup>;Examples
Multiple selection
API reference
ToggleGroup
Inherits props fromBase UI Toggle Group
Toggle
When to use
When not to use
How to use
Structure
Do
Three alignment options that act on the same object.
Don't
Download and Delete are actions, not states — they shouldn't be toggles at all.
Single & multiple selection
Layout & spacing
Accessibility
Announced to screen readers
“Text alignment group, Left Align, toggle button, pressed”