# Slide Tabs

> SlideTabs — Animated Hover Tab Indicator with Framer Motion SlideTabs is a sleek, interactive tab navigation component built with React and Framer Motion. It features a smooth, animated underline (cursor) that follows the user's hover action, giving your UI a modern and dynamic touch.  ✨ Features: Framer Motion-powered hover animation that dynamically adjusts the position and width of the indicator.  Custom cursor highlight that appears only when hovering over a tab.  Responsive design with minimal styling — easy to customize and extend.  Built with accessibility and interactivity in mind using native ul/li elements.  💡 Use Case: Perfect for navigation menus, feature tabs, or landing pages where you want to elevate the UX with subtle motion.  📦 Tech Stack: React (Functional Components + Hooks)  Framer Motion for animation  Tailwind CSS for styling  🔧 How it Works: Each Tab uses a ref to measure its size and position on hover.  The Cursor (animated highlight) moves and resizes smoothly based on the hovered tab.  On mouse leave, the cursor fades out for a clean effect.

- Author: [Sonu](https://21st.dev/@uniquesonu)
- License: unknown
- npm dependencies: framer-motion
- Live preview: https://21st.dev/@uniquesonu/components/slide-tabs

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/uniquesonu/slide-tabs?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
