A group of two-state buttons that can be toggled on or off, allowing single or multiple selection.
Aspect | Best Practice |
---|---|
Usage | Use toggle groups for related options where users can select one or multiple items, such as text formatting or view options. |
Content | Use clear, concise labels or icons that immediately communicate the function of each toggle option. |
Behavior | Support both single selection (radio-like) and multiple selection (checkbox-like) modes based on user needs. |
States | Provide clear visual feedback for active, inactive, hover, focus, and disabled states. |
Grouping | Group related toggle options together and separate different groups with appropriate spacing. |
Examples | Text formatting controls (bold, italic, underline), alignment options, view modes, or filter selections. |