sopo

Animated Tabs

Navigation

About

A tabs component with a Motion-powered sliding active indicator that animates between tab triggers, supporting default and underline (line) styles.

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 } from "@/components/ui/tabs";

export default function TabsPillPreview() {
  return (
    <Tabs defaultValue="account" className="w-full max-w-sm">
      <TabsList className="rounded-full bg-black/5 dark:bg-white/10 h-10!">
        <TabsTrigger value="account" className="rounded-full">
          Account
        </TabsTrigger>
        <TabsTrigger value="password" className="rounded-full">
          Password
        </TabsTrigger>
      </TabsList>
    </Tabs>
  );
}

Dependencies

More by sopo

View all
  • Hover Card

    Hover Card

    5
  • Sheet

    Sheet

    3
  • Animated Dialog

    Animated Dialog

    1
  • Animated Select

    Animated Select

  • Icon Toggle

    Icon Toggle

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    179
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    452
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    37
  • Sidebar

    Sidebar

    444
  • Tabs

    Tabs

    38
  • Stacked Circular Footer

    Stacked Circular Footer

    470
  • Sidebar

    Sidebar

    367
  • Footer

    Footer

    470