Animated TabsPro

Standalone tab strip with a shared-layout underline that glides between tabs.

About Animated Tabs Underline

Standalone tab strip with a shared-layout underline that glides between tabs.

Animated Tabs Underline is a animated component for React and Tailwind CSS, included in Chocolate UI Pro with motion animations that respect reduced-motion settings. It ships as 134 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • tabs
  • layout
  • underline

Installation

  1. Set up your project with npx chocolateui init and npx chocolateui login (see the installation guide).
  2. Run the Chocolate UI CLI:
npx chocolateui add animated-tabs-underline

Dependencies installed automatically: motion.

Uses: motion-presets, use-reduced-motion, utils.

Usage

import AnimatedTabsUnderline from "@/components/chocolate/animated-tabs-underline"

export default function Page() {
  return <AnimatedTabsUnderline />
}

FAQ