This component no longer exists. It was in ondo-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
tabs
ondo-ui/tabsRemovedComponent
A set of layered sections of content—known as tab panels—that are displayed one at a time.
Install it
npx shadcn@latest add https://ui.ondo.dou.so/r/tabs.jsonSource
1"use client"23import { Tabs as TabsPrimitive } from "@base-ui/react/tabs"4import { cva, type VariantProps } from "class-variance-authority"56import { cn } from "@/lib/utils"78function Tabs({9 className,10 orientation = "horizontal",11 ...props12}: TabsPrimitive.Root.Props) {13 return (14 <TabsPrimitive.Root15 data-slot="tabs"16 data-orientation={orientation}17 className={cn(18 "group/tabs flex gap-2 data-horizontal:flex-col",19 className20 )}21 {...props}22 />23 )24}2526const tabsListVariants = cva(27 "group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-9 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",28 {29 variants: {30 variant: {31 default: "bg-muted",32 line: "gap-1 bg-transparent",33 },34 },35 defaultVariants: {36 variant: "default",37 },38 }39)4041function TabsList({42 className,43 variant = "default",44 ...props45}: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>) {46 return (47 <TabsPrimitive.List48 data-slot="tabs-list"49 data-variant={variant}50 className={cn(tabsListVariants({ variant }), className)}51 {...props}52 />53 )54}5556function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props) {57 return (58 <TabsPrimitive.Tab59 data-slot="tabs-trigger"60 className={cn(61 "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",62// … truncated
What it pulls in
npm packages
Other registry items
