micka_design

Tabs Subtle

Navigation 22

About

Horizontal tab navigation with proximity-based hover, an animated pill selection indicator, and fluid variable-font-weight transitions, built on Radix Tabs. Ported from Fluid Functionalism by Micka Touillaud.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";
import {
  TabsSubtle,
  TabsSubtleItem,
  TabsSubtlePanel,
} from "@/components/ui/tabs-subtle";

const tabs = ["Teamspaces", "Recents", "Favorites", "Shared"];

export default function TabsSubtleDemo() {
  const [selected, setSelected] = React.useState(0);

  return (
    <div className="flex min-h-[240px] w-full items-start justify-center bg-background p-8">
      <div className="flex w-full max-w-md flex-col gap-4">
        <TabsSubtle
          selectedIndex={selected}
          onSelect={setSelected}
          idPrefix="tabs-subtle-demo"
        >
          {tabs.map((label, index) => (
            <TabsSubtleItem key={label} label={label} index={index} />
          ))}
        </TabsSubtle>
        {tabs.map((label, index) => (
          <TabsSubtlePanel
            key={label}
            index={index}
            selectedIndex={selected}
            idPrefix="tabs-subtle-demo"
          >
            <p className="text-muted-foreground px-3 text-[13px]">
              {label} content goes here.
            </p>
          </TabsSubtlePanel>
        ))}
      </div>
    </div>
  );
}

Dependencies

More by micka_design

View all
  • Switch

    Switch

    87
  • Select

    Select

    84
  • Checkbox Group

    Checkbox Group

    77
  • Table

    Table

    38
  • Accordion

    Accordion

    38
  • Segmented Tabs

    Segmented Tabs

    37
  • Slider

    Slider

    24
  • Badge

    Badge

    18

More in Navigation

View all
  • Sidebar

    Sidebar

    234
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    43
  • Sidebar

    Sidebar

    339
  • Tabs

    Tabs

    60
  • Numberless Pagination with Text

    Numberless Pagination with Text

    11
  • Oversized 404 Numeral

    Oversized 404 Numeral

    50
  • Footer

    Footer

    446
  • Pagination

    Pagination

    43