Exposes both a set of visual primitives that have the appearance of tabs along with helpers to create semantic tabs.
This allows the tabs to be used as navigational elements or as semantic tab elements.
Usage as semantic tabs
useTabListState hook expects a type of
HTMLDivElement (the live editor won't allow types).
Usage as navigational elements
To use the tab components as navigational elements, you can use the
as prop. The example below shows using regular
a elements, you can also use a client side routed link component such as