- This component is a sub-navigation to organize different categories of a content on the same page
- The recommended amount of tabs is 2-5
- Consider to wrap the tabbed content e.g. into cards
- Horizontal spacing is space 3 per default which could be overwritten
The TabBar supports margin styled-system props.
booleanIndicates that the link is currently selected.
stringOverride the default active class name (see react-router)
string or componentReplace the rendered component with an HTML tag or another component.
The TabBar.Link supports all the props that can be passed to
Usage with react-router
When using this component as a navigational element with the
NavLink from react-router, the class name
active on the
TabBar.Link element can also be used to indicate that the element is active and is the default that react-router adds