Navigation menu with links styled as TabNav.
Use Tabs for non-linked tabs with respective tab panel content.
Use the isActive prop to indicate which TabNavLink is active.
Add the following props to a TabNav to add decorations to the TabNavLink:
count prop to display a gray badge with the count within the TabNavLink.countFormatter prop to change the way the count is rendered.badgeVariant prop to change the variant of the badge within the TabNavLink.tooltip prop to add a tooltip to the text.statusIndicator prop to add an extra indicator to the right of the TabNavLink text.Use these instead of directly rendering additional components within the TabNavLink itself.
Use the asChild prop to compose TabNavLink with your app's router link component. This allows you to use router-specific navigation while maintaining the TabNav styling and behavior.
When using asChild, the href prop is not required since the router link component handles navigation.
You can also combine asChild with decorators like counts and tooltips:
TabNav has its own loading state when used with the Skeleton component.
Inherits margin and padding props.
| Name | Default | Description |
|---|---|---|
children | — | ReactNodeTab nav links. |
| Name | Default | Description |
|---|