Ballmac UI home

Tabs

Keyboard-navigable content tabs with quiet pill or underline styling and a clear selected state in both themes.

Your workspace at a glance

24

Active files

8

Teammates

Installation

$ pnpm dlx shadcn@latest add @ballmac/tabs

Usage

import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ballmac/tabs"

The full example is in the Code tab above.

Examples

Underline tabs

Your latest project updates appear here.

API reference

PropTypeDefault
variant

Visual treatment of the selected tab.

"pills" | "underline""pills"

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
TabFocuses the active tab
Arrow keys / Home / EndMoves among tabs
Tab againMoves into the active panel

Use with AI

Switches between a small number of peer views while retaining Radix tablist semantics and roving focus. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Tabs (@ballmac/tabs) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Related panels within one page
  • Compact dashboards and detail views

Not for

  • Steps in a workflow; use progress-steps
  • Site navigation to separate pages

Registry JSON: https://ui.ballmac.com/r/tabs.json

Credits

Free to use in personal and commercial projects.