Quaff

QToolbar

Toolbars group related actions near the content they control. Choose a docked or floating bar, arranged horizontally or vertically.

AM
Design catch-up Mic on · Camera on
info QToolbar API Source

interface QToolbarProps extends HTMLAttributes<HTMLDivElement>

floating
?: boolean = false
Uses a rounded, elevated container that fits its contents instead of a full-width docked bar.

unelevated
?: boolean = false
Removes the floating toolbar's shadow.

vertical
?: boolean = false
Arranges controls vertically. Vertical toolbars always use the floating layout.

vibrant
?: boolean = false
Uses the vibrant color scheme.

Usage

Floating Toolbar
Use floating for a compact group of actions and vibrant for a stronger color. Position the toolbar within your content, leaving at least 16px from screen edges. Use buttons or links for toolbar actions. Tab enters or leaves the group; arrow keys along the toolbar's orientation move between enabled, visible actions. Home and End move to the first and last action. The last focused action is remembered. Other controls, such as text inputs, keep their usual Tab and arrow-key behavior.
Vibrant colors
AM
Alex Morgan Mic on · Camera on
Docked Toolbar
Docked toolbars fill their container's width and scroll horizontally when the actions need more space. Place one alongside the content it controls. Place buttons directly inside the toolbar to receive its button styling.
Colorful fruit cocktail

100% zoom

Vertical Toolbar
vertical uses the floating layout automatically and grows wider to fit larger controls. Leave at least 24px from screen edges and give each toolbar an accessible name with aria-label.

Make room for good ideas.