Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Tabs

Switch between views in place. Raw inverts, Silk slides a pill, Volume presses the active key down.

NavigationRadix Tabs
Overview panel.
Props
3
$ pnpm dlx shadcn@latest add @dumb/tabs

Needs the @dumb registry in components.json and the style tokens. See Installation.

import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
<Tabs defaultValue="overview">
  <TabsList>
    <TabsTrigger value="overview">Overview</TabsTrigger>
    <TabsTrigger value="logs">Logs</TabsTrigger>
  </TabsList>
  <TabsContent value="overview">...</TabsContent>
</Tabs>

With icons

Icons and counts inside triggers.

12 issues waiting for an owner.
Tab
Moves focus to the active trigger, then into the panel.
ArrowLeftArrowRight
Moves between triggers.
HomeEnd
First / last trigger.