micka_design

Segmented Tabs

Navigation 49

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

    90
  • Select

    Select

    87
  • Checkbox Group

    Checkbox Group

    84
  • Table

    Table

    41
  • Accordion

    Accordion

    39
  • Tabs Subtle

    Tabs Subtle

    26
  • Slider

    Slider

    25
  • Badge

    Badge

    19

More in Navigation

View all
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    76
  • Footer with Big Wordmark

    Footer with Big Wordmark

    40
  • Sidebar

    Sidebar

    392
  • Oversized 404 Numeral

    Oversized 404 Numeral

    78
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    67
  • NavBar

    NavBar

    2
  • Pagination

    Pagination

    109
  • Tabs like bookmark

    Tabs like bookmark

    82