Flab UIv0.0.2
MobileA2UI

Tabs

A pill-style segment switcher over Base UI. The active tab is a solid dark pill and a sliding indicator glides behind the row; roving focus and the tab/panel ARIA wiring come from Base UI.

Overview content

<Tabs defaultValue="overview">  <TabsList>    <TabsIndicator />    <TabsTab value="overview">Overview</TabsTab>    <TabsTab value="activity">Activity</TabsTab>    <TabsTab value="settings">Settings</TabsTab>  </TabsList>  <TabsPanel value="overview">Overview content</TabsPanel>  <TabsPanel value="activity">Activity content</TabsPanel>  <TabsPanel value="settings">Settings content</TabsPanel></Tabs>

Parts

PropTypeDefaultNotes
TabsRoot—Holds value/defaultValue and onValueChange.
TabsListcontainer—The pill track; wraps the tabs.
TabsIndicatorelement—Sliding pill; place first inside TabsList.
TabsTabtrigger—One per tab; needs a value.
TabsPanelregion—Matched to a tab by value.