Tabbed interface root. Compose with <TabList>, <Tab>, and <TabPanel>. The role-based markup, aria-selected, hidden, and roving tabindex are all rendered from the value, so server output is correct before the enhancer adds keyboard navigation. Tab values come from each <Tab value>, defaulting to the index; panels match tabs by position. Selection works uncontrolled (defaultValue) or controlled (value + onValueChange).

<Tabs value={tab} onValueChange={setTab}>
<TabList>
<Tab value="overview">Overview</Tab>
<Tab value="install">Install</Tab>
</TabList>
<TabPanel>Zero runtime by default.</TabPanel>
<TabPanel>npm install hydrateless</TabPanel>
</Tabs>

Properties

$$typeof: symbol
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

propTypes?: any

Ignored by React.

Only kept in types for backwards compatibility. Will be removed in a future major release.