BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/wise-ui/animated-tabs

Animated Tabs

wise-ui/animated-tabs
FreeComponent

Tabs with smooth animated indicator transitions.

Live preview

live · rendered by the registry
Rendered by wise-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://wise-ui.com/r/animated-tabs.json

Source

registry/wise-ui/components/animated-tabs.tsxwise-ui.com/r/animated-tabs.json
1"use client"
2
3import * as React from "react"
4import { motion } from "motion/react"
5import { cn } from "@/registry/wise-ui/lib/utils"
6
7interface Tab {
8 id: string
9 label: string
10 icon?: React.ReactNode
11}
12
13interface AnimatedTabsProps {
14 tabs: Tab[]
15 activeTab: string
16 onTabChange: (tabId: string) => void
17 className?: string
18}
19
20function AnimatedTabs({
21 tabs,
22 activeTab,
23 onTabChange,
24 className,
25}: AnimatedTabsProps) {
26 const layoutId = React.useId()
27
28 return (
29 <div
30 className={cn(
31 "inline-flex items-center gap-1 rounded-lg border border-border bg-muted/50 p-1",
32 className
33 )}
34 >
35 {tabs.map((tab) => {
36 const isActive = tab.id === activeTab
37 return (
38 <button
39 key={tab.id}
40 onClick={() => onTabChange(tab.id)}
41 className={cn(
42 "relative z-10 inline-flex cursor-pointer items-center gap-2 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
43 isActive
44 ? "text-foreground"
45 : "text-muted-foreground hover:text-foreground"
46 )}
47 >
48 {isActive && (
49 <motion.div
50 layoutId={`tab-pill-${layoutId}`}
51 className="absolute inset-0 rounded-md bg-background shadow-sm"
52 transition={{ type: "spring", stiffness: 500, damping: 35 }}
53 style={{ zIndex: -1 }}
54 />
55 )}
56 {tab.icon && <span className="inline-flex shrink-0">{tab.icon}</span>}
57 {tab.label}
58 </button>
59 )
60 })}
61 </div>
62 )
63}
64AnimatedTabs.displayName = "AnimatedTabs"
65
66export { AnimatedTabs }
67export type { AnimatedTabsProps, Tab }

What it pulls in

npm packages

  • motion
  • clsx
  • tailwind-merge

Files it writes

  • registry/wise-ui/components/animated-tabs.tsx

Facts

Registry
wise-ui
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

Docs on wise-ui wise-ui.com r-pathak/wise-ui on GitHub Raw registry item This item as JSON

More from wise-ui

All 20 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Border Beamborder-beamwise-uiComponentsFree3 deps
Data Tabledata-tablewise-uiComponentsFree3 deps
Dockdockwise-uiComponentsFree3 deps
Dot Matrixdot-matrixwise-uiComponentsFree2 deps
Editable Texteditable-textwise-uiComponentsFree4 deps
Gradient Sidebargradient-sidebarwise-uiComponentsFree3 deps
Kanban Boardkanban-boardwise-uiComponentsFree6 deps
Magnetic Buttonmagnetic-buttonwise-uiComponentsFree3 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex