Oddmash UI
All components

Tabs

Switch between panels on the same page.

Usage

Use tabs for related views and links for site navigation. Keep tab names short and distinct. Set indicatorMotion="slide" on TabsList to opt into the moving indicator.

Accessibility

Label TabsList. Arrow keys move between enabled tabs; Home and End jump to the edges. Radix manages selection, focus, and panel relationships.

PropertyTypeDefault
value / defaultValuestringNone
onValueChange(value: string) => voidNone
orientationhorizontal | verticalhorizontal
activationModeautomatic | manualautomatic
indicatorMotion (TabsList)'slide'None
<Tabs defaultValue="activity">
  <TabsList aria-label="Project views" indicatorMotion="slide">
    <TabsTrigger value="activity">Activity</TabsTrigger>
    <TabsTrigger value="settings">Settings</TabsTrigger>
  </TabsList>
  <TabsContent value="activity">No new events.</TabsContent>
  <TabsContent value="settings">Project settings.</TabsContent>
</Tabs>

Interactive documentation