Atelier UI

Search components…

Search components…

Animated Tabs

Tabs with a sliding active indicator and arrow-key navigation.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

AnimatedTabsProps

Also accepts all props of Omit<React.ComponentProps<"div">, "onChange">

PropTypeDefaultDescription
tabs* requiredAnimatedTab[]——
valuestring——
defaultValuestring——
onChange(id: string) => void——
variant"pill" | "underline""pill""pill" fills the active tab, "underline" draws a bar below it

Install

$ npx shadcn@latest add https://chromotion.dev/r/animated-tabs.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this