BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/muffled-ui-registry/tabs

Tabs

muffled-ui-registry/tabs
FreeComponent

Section switching with segmented and underline variants. Hairline borders, opacity hover, no shadows.

Live preview

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

Install it

npx shadcn@latest add https://ui.muffled.studio/r/tabs.json

Source

registry/ui/tabs.tsxui.muffled.studio/r/tabs.json
1import { Tabs as TabsPrimitive } from "@base-ui/react/tabs"
2import { cva, type VariantProps } from "class-variance-authority"
3
4import { cn, focusRingClasses } from "@/registry/lib/surface"
5
6function Tabs({
7 className,
8 orientation = "horizontal",
9 ...props
10}: TabsPrimitive.Root.Props) {
11 return (
12 <TabsPrimitive.Root
13 data-slot="tabs"
14 data-orientation={orientation}
15 orientation={orientation}
16 className={cn(
17 "group/tabs flex gap-2 data-horizontal:flex-col",
18 className,
19 )}
20 {...props}
21 />
22 )
23}
24
25const tabsListVariants = cva(
26 "group/tabs-list inline-flex w-fit items-center justify-center rounded-md p-0.5 font-sans text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none data-[variant=line]:bg-transparent",
27 {
28 variants: {
29 variant: {
30 default: "bg-muted",
31 line: "gap-1 bg-transparent",
32 },
33 },
34 defaultVariants: {
35 variant: "default",
36 },
37 },
38)
39
40function TabsList({
41 className,
42 variant = "default",
43 ...props
44}: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>) {
45 return (
46 <TabsPrimitive.List
47 data-slot="tabs-list"
48 data-variant={variant}
49 className={cn(tabsListVariants({ variant }), className)}
50 {...props}
51 />
52 )
53}
54
55function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props) {
56 return (
57 <TabsPrimitive.Tab
58 data-slot="tabs-trigger"
59 className={cn(
60 "relative inline-flex h-7 flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 font-sans text-sm font-medium whitespace-nowrap text-muted-foreground outline-none transition-opacity duration-[var(--d-drift)] ease-[var(--ease-drift)] group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:opacity-60 active:opacity-40 active:duration-[var(--d-snap)] active:ease-[var(--ease-snap)] disabled:pointer-events-none disabled:opacity-40 aria-disabled:pointer-events-none aria-disabled:opacity-40 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
61 focusRingClasses,
62// … truncated

What it pulls in

npm packages

  • class-variance-authority
  • @base-ui/react

Other registry items

  • @muffled/surface

Files it writes

  • registry/ui/tabs.tsx

Facts

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

Go to the source

Docs on muffled-ui-registry ui.muffled.studio muffled-studio/muffled.ui on GitHub Raw registry item This item as JSON

More from muffled-ui-registry

All 55 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionmuffled-ui-registryComponentsFree2 deps
Alertalertmuffled-ui-registryComponentsFree1 dep
Alert Dialogalert-dialogmuffled-ui-registryComponentsFree1 dep
Avataravatarmuffled-ui-registryComponentsFree1 dep
Badgebadgemuffled-ui-registryComponentsFree2 deps
Breadcrumbbreadcrumbmuffled-ui-registryComponentsFree2 deps
Buttonbuttonmuffled-ui-registryComponentsFree2 deps
Button Groupbutton-groupmuffled-ui-registryComponentsFree2 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