Victor Mesquita

Page Tabs

Navigation

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>
  );
}

Dependencies

More by Victor Mesquita

View all
  • Data Table Toolbar

    Data Table Toolbar

    10
  • Task List

    Task List

    8
  • Uai Blocks Community Feed

    Uai Blocks Community Feed

    5
  • Reaction Bar

    Reaction Bar

    3
  • Cart Item

    Cart Item

  • Quantity Picker

    Quantity Picker

  • Comment

    Comment

  • Metric Card

    Metric Card

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    179
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    452
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    37
  • Sidebar

    Sidebar

    444
  • Tabs

    Tabs

    38
  • Stacked Circular Footer

    Stacked Circular Footer

    470
  • Sidebar

    Sidebar

    367
  • Footer

    Footer

    470