Skip to content
kapable

Tabs

Navigation · 6 exports · v0.1.0 · showcase

Keyboard-roving tab set for switching among related panels in place.

Browse 72 component families

Tabs renders its active panel during SSR, but switching tabs requires the client runtime. This server-rendered page does not imitate client behavior. Open the live playground.

Usage

Tabs usage
<Tabs defaultActiveTab="overview">
  <TabList label="Deploy sections"><Tab name="overview">Overview</Tab></TabList>
  <TabPanel name="overview">Summary</TabPanel>
</Tabs>

API

Tabs API

TabsProps

Tabs props
proptypenotes
defaultActiveTab?stringUncontrolled: the tab active on first render.
activeTab?stringControlled: the active tab name (pair with onActiveTabChange).
onActiveTabChange?(activeTab: string) => void
disabled?booleanDisables every tab.
children?RemixNodeTabList + Tab children, then TabPanel siblings.
mix?MixInputComposition passthrough for the root element.

TabListProps

TabList props
proptypenotes
labelstringAccessible name for the tablist (what the group of views is).
children?RemixNode
mix?MixInput

TabProps

Tab props
proptypenotes
namestringTab name, matched by the TabPanel with the same name.
disabled?boolean
children?RemixNode
mix?MixInput

TabPanelProps

TabPanel props
proptypenotes
namestringName of the Tab this panel belongs to.
children?RemixNode
mix?MixInput

More in Navigation

More in Navigation