TabBar

  • 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

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 to active NavLink elements.

Playground