Toolbars are essential UI components that provide convenient access to actions and tools. They can be placed at various locations within your interface and configured to suit different needs.

Usage

Toolbars are commonly used in applications to provide quick access to frequently used functions. They can be customized with various controls including buttons, dropdowns, search fields, and more.
Some of the basic examples are shown below.

Standard Toolbar

A standard toolbar with basic action buttons:

Navigation Toolbar

A toolbar for navigation controls:

Toolbar with Dropdown

A toolbar with actions and a dropdown menu:

Search Toolbar

A toolbar with a search field and settings button:

Search...

Customization

Toolbars can be customized in various ways to fit your application's needs:

  • Fixed Position: Add the fixed prop to create a toolbar that stays in place during scrolling.
  • Density: Use variant="dense" for a more compact toolbar with less vertical padding.
  • Custom Content: Combine buttons, text fields, dropdowns, and other controls to create custom toolbar layouts.
  • Styling: Apply custom styles to match your application's design system.

When designing toolbars, consider the user's workflow and prioritize the most frequently used actions to improve efficiency and usability.