Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React Segmented Control Navbar Block

A navigation bar with iOS-style segmented control built with React, Next.js, shadcn/ui, and Tailwind CSS. Nav items sit inside a bg-muted container with the active segment highlighted by a sliding white card background animated with framer-motion layoutId transitions.

Bring native-app navigation patterns to the web with this segmented control navbar. The active segment slides between items with a smooth framer-motion animation, backed by a contrasting card background inside a muted container. Inspired by iOS and macOS segmented controls, this pattern feels instantly familiar to users and works beautifully for switching between top-level views.

React Segmented Control 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.