The title bar provides context and actions related to a particular section of content that follows below on the screen.
Title bar has a number of props to facilitate a variety of uses:
An error occurred loading this code example.For more information about how to apply overrides to a component please refer to the Override default preset page.
For more information on overriding component defaults, see the docs here.
- Action items (optional)
The container takes up the full width of the grid area that's specified for example 12 column, 6 column etc.
A border is applied at the bottom.
The title should provide context for the content that sits below the title bar.
Action items can include a button or a link. They are positioned to the right of the container and they vertically align to the position of the title.
If you are using one of our components you can style the Button or the Link as you like from their overrides.
We suggest you to use the style preset
linkStandalone respectively for a Button and a Link action.
Action hidden at smaller breakpoints
By default the action item is hidden on extra small breakpoint (xs). This is to allow the action to then be placed at the bottom of mobile list for a better UX.
Your title should be 3:1 colour ratio against a the background colour to be AA WCAG compliant.