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

export default function TabsLineDemo() {
  return (
    <Tabs defaultValue="command" className="w-full max-w-sm gap-4">
      <TabsList className="rounded-full" variant="line">
        <TabsTrigger value="command" className="rounded-full">
          Command
        </TabsTrigger>
        <TabsTrigger value="manual" className="rounded-full">
          Manual
        </TabsTrigger>
      </TabsList>
      <TabsContent value="command" className="flex flex-col gap-4">
        npx shadcn-animated add tabs
      </TabsContent>
      <TabsContent value="manual">
        Copy and paste the component source into your project manually.
      </TabsContent>
    </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

    133
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    368
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    1
  • Sidebar

    Sidebar

    431
  • Pagination with Ellipsis

    Pagination with Ellipsis

    31
  • Button Breadcrumb

    Button Breadcrumb

    43
  • Pagination

    Pagination

    118
  • Navbar

    Navbar

    80