带有标签样式链接的导航菜单。
¥API Reference
¥This component is based on the Navigation Menu primitive and supports common margin props.
¥Root
包含导航菜单链接。
¥Contains the navigation menu links.
¥Link
单独的导航菜单链接。
¥An individual navigation menu link.
¥Examples
¥Size
使用 size
属性控制标签的大小。
¥Use the size
prop to control the size of the tabs.
¥Color
使用 color
属性将特定的 color 分配给标签列表。
¥Use the color
prop to assign a specific color to the tab list.
¥High-contrast
使用 highContrast
属性增加与背景的颜色对比度。
¥Use the highContrast
prop to increase color contrast with the background.
¥With router links
使用 asChild
属性将 TabNav.Link
与应用的路由链接组件组合。
¥Use the asChild
prop to compose TabNav.Link
with your app’s router link component.