Animated Tabs
MotionTabs 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#
| Prop | Type | Default |
|---|---|---|
tabs | Tab[] | DEMO |
defaultValue | string | - |
onValueChange | (id: string) => void | - |
className | string | - |
Dependencies#
npm
motion
Built from
No other MiniDev files
Related navigation components#
Scroll Progress RailA React reading progress bar that fills with page scroll on a spring, with section labels such as intro, product, proof and pricing shown beneath it.DockA macOS style dock for React: icons magnify under the pointer with spring physics and show a label. Real buttons or links, keyboard reachable and labelled.Back LinkSmall back navigation link with a left arrow icon, muted text that darkens on hover and a visible focus ring. Defaults to the label Back and accepts any href.Breadcrumb EllipsisEllipsis marker for collapsing the middle of long breadcrumb trails. Decorative and hidden from assistive tech, sized to sit between breadcrumb separators.BreadcrumbBreadcrumb navigation from an items array, with chevron separators, linked ancestors and the current page marked with aria-current. Built with React.Collapsible SidebarSidebar with a toggle button on its edge that collapses it to a narrow rail and expands it again. The button label updates for screen readers.
All navigation components