一组内容部分,每次显示一个。
¥API Reference
¥This component inherits props from the Tabs primitive and supports common margin props.
¥Root
包含所有组成部分。
¥Contains all component parts.
¥List
包含与活动内容并排的触发器。
¥Contains the triggers that sit alongside the active content.
¥Trigger
激活其关联内容的按钮。
¥The button that activates its associated content.
¥Content
包含与每个触发器关联的内容。
¥Contains the content associated with each trigger.
¥Examples
¥Size
使用 size
属性控制标签列表的大小。
¥Use the size
prop to control the size of the tab list.
¥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.
¥Navigation
标签不应用于页面导航。请使用 标签导航,它专为此目的而设计,并且具有等效的样式。
¥Tabs should not be used for page navigation. Use Tab Nav instead, which is designed for this purpose and has equivalent styles.