Tabs
Native Solid 2 fork. Original documentation and designs © WorkOS; historical posts retain their original context.
Make changes to your account.
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
Use the size prop to control the size of the tab list.
Color
Use the color prop to assign a specific color to the tab list.
High-contrast
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.