About
A compound tab navigation bar for page headers that shows per-tab counts, optional page-level actions, and a sliding active indicator with horizontal scroll overflow.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Page Tabs to your project and fits it to your theme.
Code
How Page Tabs is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import {
PageTabs,
PageTabsActions,
PageTabsBar,
PageTabsCount,
PageTabsList,
PageTabsPanel,
PageTabsTab,
} from "@/components/ui/page-tabs";
import { Button } from "@/components/ui/button";
export default function PageTabsDemo() {
return (
<PageTabs defaultValue="all" className="w-full max-w-xl">
<PageTabsBar>
<PageTabsList>
<PageTabsTab value="all">
All
<PageTabsCount>24</PageTabsCount>
</PageTabsTab>
<PageTabsTab value="open">
Open
<PageTabsCount>8</PageTabsCount>
</PageTabsTab>
<PageTabsTab value="closed">
Closed
<PageTabsCount>16</PageTabsCount>
</PageTabsTab>
</PageTabsList>
<PageTabsActions>
<Button size="sm" variant="outline">
New
</Button>
</PageTabsActions>
</PageTabsBar>
<PageTabsPanel value="all">All items panel content.</PageTabsPanel>
<PageTabsPanel value="open">Open items panel content.</PageTabsPanel>
<PageTabsPanel value="closed">Closed items panel content.</PageTabsPanel>
</PageTabs>
);
}
















