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
  • Uai Blocks Community Feed

    Uai Blocks Community Feed

    5
  • Task List

    Task List

    4
  • Status Banner

    Status Banner

  • Sign-up Card

    Sign-up Card

  • Password Recovery

    Password Recovery

  • Calendar View

    Calendar View

  • Document Field

    Document Field

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    137
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    372
  • Sidebar

    Sidebar

    434
  • Tabs

    Tabs

    18
  • Footer Section

    Footer Section

  • Pagination with Ellipsis

    Pagination with Ellipsis

    31
  • NavBar

    NavBar

    2
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    2