Tab Nav

Navigation menu with links styled as tabs.

This component is based on the Navigation Menu primitive and supports common margin props.

Contains the navigation menu links.

PropTypeDefault
size"1" | "2""2"
wrap"wrap" | "nowrap" | "wrap-reverse"
justify"start" | "center" | "end"
color"gray" | "purple"
highContrastboolean

An individual navigation menu link.

PropTypeDefault
asChildboolean
activebooleanfalse

Use the size prop to control the size of the tabs.

Use the color prop to assign a specific color to the tab list.

Use the highContrast prop to increase color contrast with the background.

Use the asChild prop to compose TabNav.Link with your app’s router link component.