kuratlielia

Animated Tabs

Navigation 9

About

An animated tabs component with a sliding selection highlight, scrollable tab list with edge-fade arrows for overflow, and height-morphing content panels that smoothly resize between tabs.

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

Code

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

Usage.tsx

"use client";

import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";

export default function TabsDemo() {
  return (
    <Tabs defaultValue="overview" className="w-full max-w-md">
      <TabsList>
        <TabsTrigger value="overview">Overview</TabsTrigger>
        <TabsTrigger value="activity">Activity</TabsTrigger>
        <TabsTrigger value="settings">Settings</TabsTrigger>
      </TabsList>
      <TabsContent value="overview">
        Track performance at a glance with key metrics and recent highlights.
      </TabsContent>
      <TabsContent value="activity">
        A running log of recent actions across your workspace.
      </TabsContent>
      <TabsContent value="settings">
        Manage preferences, notifications, and account details.
      </TabsContent>
    </Tabs>
  );
}

Dependencies

More by kuratlielia

View all
  • Activity Heatmap

    Activity Heatmap

    503
  • Image Compare

    Image Compare

    171
  • User Menu

    User Menu

    109
  • Stats Band

    Stats Band

    100
  • Date Range Picker

    Date Range Picker

    86
  • Usage Meter

    Usage Meter

    66
  • Timeline

    Timeline

    48
  • Ridgeline Chart

    Ridgeline Chart

    45

More in Navigation

View all
  • Sidebar

    Sidebar

    354
  • Pagination

    Pagination

    35
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    58
  • Pagination with Ellipsis

    Pagination with Ellipsis

    20
  • Oversized 404 Numeral

    Oversized 404 Numeral

    72
  • Sortable Sidebar Navigation

    Sortable Sidebar Navigation

    73
  • Navbar

    Navbar

    8
  • Breadcramb

    Breadcramb

    41