Tabs

The Tabs component is a navigational element that allows users to switch between different views or sections of content within the same page. Each tab is associated with a content panel, and clicking a tab displays the corresponding panel while hiding others. This component helps organize content efficiently and improves user experience by providing easy access to different sections without leaving the current page.

TabComponent

className

string

id

string

The ID of the composite store is used to reference elements within the composite widget before hydration. If not provided, a random ID will be generated.

size

"md" | "sm"

store

TabStore & Store<Partial<TabStoreState>>

Another store object that will be kept in sync with the original store. Live examples: - [Navigation Menubar](https://ariakit.org/examples/menubar-navigation)

Tab

className

string

id

string

The ID of the composite store is used to reference elements within the composite widget before hydration. If not provided, a random ID will be generated.

size

"md" | "sm"

store

TabStore & Store<Partial<TabStoreState>>

Another store object that will be kept in sync with the original store. Live examples: - [Navigation Menubar](https://ariakit.org/examples/menubar-navigation)

useTabStore