micka_design

Segmented Tabs

Navigation 58

About

A segmented tab control with a sliding selected-tab background and a fluid hover highlight that follows the cursor, used to switch between grouped panels of content.

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

Code

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

Usage.tsx

"use client";

import { Tabs, TabsList, TabItem, TabPanel } from "@/components/ui/tabs-base";

export default function TabsDemo() {
  return (
    <Tabs defaultValue="library" className="w-[360px]">
      <TabsList>
        <TabItem value="library" label="Library" />
        <TabItem value="recents" label="Recents" />
        <TabItem value="favorites" label="Favorites" />
        <TabItem value="settings" label="Settings" />
      </TabsList>
      <TabPanel value="library">
        <p className="text-sm text-muted-foreground pt-3">Library content.</p>
      </TabPanel>
      <TabPanel value="recents">
        <p className="text-sm text-muted-foreground pt-3">Recents content.</p>
      </TabPanel>
      <TabPanel value="favorites">
        <p className="text-sm text-muted-foreground pt-3">Favorites content.</p>
      </TabPanel>
      <TabPanel value="settings">
        <p className="text-sm text-muted-foreground pt-3">Settings content.</p>
      </TabPanel>
    </Tabs>
  );
}

Dependencies

More by micka_design

View all
  • Switch

    Switch

    92
  • Select

    Select

    88
  • Checkbox Group

    Checkbox Group

    85
  • Table

    Table

    42
  • Accordion

    Accordion

    40
  • Tabs Subtle

    Tabs Subtle

    27
  • Slider

    Slider

    26
  • Badge

    Badge

    20

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    100
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    295
  • Sidebar

    Sidebar

    422
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Tabs

    Tabs

    33
  • Menu

    Menu

    23
  • Breadrcrumb

    Breadrcrumb

    6