Back to Components
Navigation
Tabs
Tabbed interface with animated indicator and content panels.
PropsUsage ExampleVariations
Monitor KPIs, customer satisfaction, and usage trends.
Dependencies
- clsx
- tailwind-merge
- framer-motion
Files
- components/ui/tabs.tsx
Installation
Using shadcn CLI
npx shadcn add tabs --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge framer-motionRelated Navigation Components
Accordion
Collapsible sections with smooth height animation and accessible controls.
Bottom Nav Bar
Mobile-style bottom navigation with icons, labels, and active state.
Breadcrumb Dropdown
Breadcrumbs with an overflow dropdown for deep navigation paths.
Breadcrumb Trail
Animated breadcrumbs with an overflow dropdown for longer navigation paths.
Breadcrumbs
Navigation breadcrumbs with separators, current page styling, and optional collapse.
Collapsible
Expandable content section with animated open/close transitions.