DocumentationAnimated Tab Bar

Animated Tab Bar

A beautiful iOS-style tab bar with smooth animations and morphing active indicator. Features multiple animation styles and full customization.

Install using CLI

npx shadcn@latest add "https://obsidianui.dev/r/animated-tab-bar.json"

Install Manually

1

Install dependencies

npm install framer-motion lucide-react clsx tailwind-merge
2

Copy the source code

Copy into components/ui/animated-tab-bar.tsx

Note: This is a large component (400+ lines). Install via CLI for the full source code.

Props

Prop NameTypeDefaultDescription
itemsTabItem[][...defaults]Array of tab items with icon and label
classNamestring-Additional CSS classes
defaultActiveIndexnumber0Initially active tab
onTabChange(index) => void-Tab change callback