Animated Tabs

Motion

Tabs with a sliding pill indicator and panels that fade in the direction of travel. Full WAI-ARIA tabs keyboard support with Arrow keys, Home and End.

src/registry/premium/animated-tabs.tsx/r/animated-tabs.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/animated-tabs.json

Usage#

tsx
import { AnimatedTabs } from "@/components/ui/animated-tabs"

export function Example() {
  return <AnimatedTabs />
}

API reference#

AnimatedTabs props
PropTypeDefault
tabsTab[]DEMO
defaultValuestring-
onValueChange(id: string) => void-
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files
All navigation components