cult/ui

Halo Tabs

Navigation 3

About

A tabs component with an animated gradient underline or pill indicator that slides between active tabs.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Halo Tabs to your project and fits it to your theme.

Code

How Halo Tabs is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import {
  HaloTabs,
  HaloTabsContent,
  HaloTabsIndicator,
  HaloTabsList,
  HaloTabsTrigger,
} from "@/components/ui/halo-tabs";

export default function HaloTabsDemo() {
  return (
    <div>
      <section className="space-y-3">
        <h2 className="font-semibold text-foreground text-lg tracking-tight">
          Tabs — underline
        </h2>
        <HaloTabs className="w-full min-w-96 max-w-96" defaultValue="overview">
          <HaloTabsList variant="underline">
            <HaloTabsTrigger value="overview">Overview</HaloTabsTrigger>
            <HaloTabsTrigger value="usage">Usage</HaloTabsTrigger>
            <HaloTabsTrigger value="billing">Billing</HaloTabsTrigger>
            <HaloTabsIndicator variant="underline" />
          </HaloTabsList>
          <HaloTabsContent value="overview">
            Project summary, health metrics, and rollouts for the current
            workspace.
          </HaloTabsContent>
          <HaloTabsContent value="usage">
            API volume, seat counts, and rate limits for the billing period in
            view.
          </HaloTabsContent>
          <HaloTabsContent value="billing">
            Invoices, payment methods, and tax details for this account and
            billing.
          </HaloTabsContent>
        </HaloTabs>

        <h2 className="font-semibold text-foreground text-lg tracking-tight">
          Tabs — pill
        </h2>
        <HaloTabs className="w-full min-w-96 max-w-96" defaultValue="design">
          <HaloTabsList variant="pill">
            <HaloTabsTrigger value="design">Design</HaloTabsTrigger>
            <HaloTabsTrigger value="code">Code</HaloTabsTrigger>
            <HaloTabsTrigger value="preview">Preview</HaloTabsTrigger>
            <HaloTabsIndicator variant="pill" />
          </HaloTabsList>
          <HaloTabsContent value="design">
            Tokens, spacing, and motion aligned with the polished surfaces.
          </HaloTabsContent>
          <HaloTabsContent value="code">
            Implementation notes and props for each primitive.
          </HaloTabsContent>
          <HaloTabsContent value="preview">
            Live preview of the active variant.
          </HaloTabsContent>
        </HaloTabs>
      </section>
    </div>
  );
}

Dependencies

More by cult/ui

View all
  • 3D Carousel

    3D Carousel

    2.7K
  • Logo Carousel

    Logo Carousel

    1.2K
  • Feature Carousel

    Feature Carousel

    537
  • Popover Form

    Popover Form

    435
  • Floating Panel

    Floating Panel

    266
  • Expandable

    Expandable

    147
  • Dock

    Dock

    130
  • Hero Liquid Metal

    Hero Liquid Metal

    128

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    191
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    52
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    475
  • Sidebar

    Sidebar

    450
  • Stacked Circular Footer

    Stacked Circular Footer

    473
  • Pagination

    Pagination

    5
  • Footer

    Footer

    471
  • Icon Breadcrumb

    Icon Breadcrumb

    22