Animated Tabs
A tabbed switcher with physical pill indicator sliding smoothly between active items with content cross-fades.
Overview metrics & telemetry
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/animated-tabs
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| tabs | TabItem[] | [] | Array of tabs with id, label, icon, content |
| defaultTab | string | tabs[0].id | Initial active tab ID |
| onChange | (id: string) => void | undefined | Tab change callback |