Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React Tabs Underline Navbar Block

A tab-style navigation bar with animated underline indicator built with React, Next.js, shadcn/ui, and Tailwind CSS. Clicking a nav item slides a bottom border to the active tab using framer-motion layoutId animation. Active tab uses text-foreground while inactive tabs use text-muted-foreground for clear visual hierarchy.

Turn your navbar into a polished tab bar with a sliding underline indicator. Click any navigation item and watch the bottom border glide smoothly to the active tab using framer-motion layoutId animation. Active tabs render in text-foreground while inactive tabs fade to text-muted-foreground, creating an unmistakable visual hierarchy. Minimal, elegant, and inspired by the simplicity of browser tabs. Perfect for single-page apps, documentation sites, and dashboard navigation.

React Tabs Underline Navbar Block preview

Loading...
Scroll to load preview

Installation

Install
Pro block

FAQ

Last updated on March 24, 2026

Was this page helpful?

Sign in to leave feedback.