design-infraGitHub
Report a problem or share feedback← Catalog

Animated Tabs

curatedtheme-awarefree

smoothui/animated-tabs

Animated tabs component with sliding indicator

state — subtledrop-inRefinedMinimal
$npx shadcn@latest add @smoothui/animated-tabs

npm deps: motion

Our notes

Tab list with a layoutId spring indicator in underline, pill or segment variants; arrow/Home/End keys and roving tabindex. Pill/segment use bg-muted + bg-background (theme). The underline uses bg-brand from SmoothUI's tokens.json (pink by default) — set --brand: var(--primary) once in globals.css. Tabs only: you render the panels (pair with motion-primitives/transition-panel).
Source
SmoothUI
Kind
component
Categories
tabs
Use as
drop-in — replaces your component
Applies to
tabsnavigation
Motion
on state · subtle · motion · medium cost · respects reduced motion
Tags
tabs, navigation, indicator, underline, pill, segment, spring, complexity-medium, reduced-motion
Licence
MIT ("MIT License — Copyright (c) 2024 Eduardo Calvo", github.com/educlopez/smoothui).
Live demo
smoothui.dev
Docs
smoothui.dev