Usage
The action bar facilitates performing actions on one or multiple items simultaneously.
Best practices
Use it to provide a layer of actions at the bottom of the page or inside a component, such as table actions or long forms views.
Do not show more than one action bar at a time.
Be conscious of mobile regarding content and the amount of actions available. Prioritize or place less important actions in a dropdown menu.
Do not stretch the action bar on bigger viewports nor use the mobile version, instead, display it always in a single line.
Make sure you follow the button’s best practices.
Do not use any other button than plain, and additionally, primary or danger. Action hierarchy should always have two levels.
Accessibility
General considerations
Some of the considerations to make the action bar accessible require adding ARIA properties to the regions being affected:
- Set
aria-live
toassertive
so updates to the region have the highest priority and should be presented to the user immediately. - Set
aria-atomic
totrue
if you want the entire changed region as a whole to be presented. - Use
aria-busy
to indicate that an element is being modified and that assistive technologies may want to wait until the changes are complete before informing the user about the update.
Examples
Live Preview
Props
Fetching props...
Slots
Fetching slots...