Toolbars
Toolbars group a set of actions or tools in a horizontal or vertical bar. They provide quick access to frequently used functions within a specific context.
Overview
Toolbars are utility components that contain icon buttons, dropdown menus, or other controls. Unlike app bars which focus on navigation, toolbars are action-oriented and often appear within content areas like text editors, image editors, or data tables.
Live Preview
Standard Toolbar
Text Formatting Toolbar
Toolbar with Dropdown
Vertical Toolbar
Canvas / Work Area
Brand Properties
The following table shows Toolbar properties with Material Design 3 defaults and brand-specific values.
| Property | Type | Material Default | HoB Value | TAE Value |
|---|---|---|---|---|
| Container Color | Color | #FEF7FF | #FFFFFF | #FFFFFF |
| Icon Color | Color | #49454F | #1F2937 | #1F2937 |
| Active Icon Color | Color | #6750A4 | #038012 | #1A5129 |
| Active Background | Color | #E8DEF8 | primary/15% | primary/15% |
| Hover Background | Color | onSurface/8% | #F3F4F6 | #F3F4F6 |
| Divider Color | Color | #CAC4D0 | muted/60% | muted/60% |
| Container Padding | Number | 8dp | 8px | 8px |
| Icon Button Size | Number | 40dp | 40px | 40px |
| Icon Size | Number | 24dp | 20px | 20px |
| Button Gap | Number | 4dp | 4px | 4px |
| Border Radius | Number | 8dp | 8px | 8px |
| Icon Button Radius | Number | 4dp | 4px | 4px |
| Elevation | Number | 1dp | 2px | 2px |
Variants
- Horizontal Toolbar - Standard row of actions
- Vertical Toolbar - Column of actions, often for drawing/editing apps
- Floating Toolbar - Detached from edges, often appears contextually
- Segmented Toolbar - Grouped buttons with dividers
- Toolbar with Dropdowns - Contains select menus or combo boxes
Contents
- Icon Buttons - Primary toolbar actions
- Dividers - Vertical/horizontal lines to group related actions
- Dropdowns - For options like font, size, style
- Toggle Buttons - For on/off states (bold, italic)
- Color Pickers - For text/fill colors
Behavior
- Buttons can have selected/active state
- May show tooltips on hover
- Can be docked or floating
- May collapse into overflow menu on smaller screens
- Context-specific toolbars appear/hide based on selection
Accessibility
- Use
role="toolbar"on the container - Provide
aria-labelfor the toolbar purpose - Use
aria-pressedfor toggle button states - Support arrow key navigation within toolbar
- All buttons must have accessible names
- Group related buttons with
role="group"
