BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uiable/tabs

Tabs

uiable/tabs
FreeComponent

Tabs component.

Live preview

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

Install it

npx shadcn@latest add https://uiable.com/r/tabs.json

Source

src/components/ui/tabs.tsxuiable.com/r/tabs.json
1"use client";
2
3import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
4import { cva, type VariantProps } from "class-variance-authority";
5
6import { cn } from "@/lib/utils";
7
8function Tabs({
9 className,
10 orientation = "horizontal",
11 ...props
12}: TabsPrimitive.Root.Props) {
13 return (
14 <TabsPrimitive.Root
15 data-slot="tabs"
16 data-orientation={orientation}
17 className={cn(
18 "group/tabs flex gap-2 data-horizontal:flex-col",
19 className
20 )}
21 {...props}
22 />
23 );
24}
25
26const tabsListVariants = cva(
27 "rounded-lg p-1.5 group-data-horizontal/tabs:h-12 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col",
28 {
29 variants: {
30 variant: {
31 default: "bg-background",
32 line: "gap-1 bg-transparent"
33 }
34 },
35 defaultVariants: {
36 variant: "default"
37 }
38 }
39);
40
41function TabsList({
42 className,
43 variant = "default",
44 ...props
45}: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>) {
46 return (
47 <TabsPrimitive.List
48 data-slot="tabs-list"
49 data-variant={variant}
50 className={cn(tabsListVariants({ variant }), className)}
51 {...props}
52 />
53 );
54}
55
56function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props) {
57 return (
58 <TabsPrimitive.Tab
59 data-slot="tabs-trigger"
60 className={cn(
61 "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground data-active:hover:text-white dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-3 py-1.5 text-base font-medium whitespace-nowrap transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 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

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

Files it writes

  • src/components/ui/tabs.tsx

Facts

Registry
uiable
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on uiable uiable.com codedthemes/uiable on GitHub Raw registry item This item as JSON

More from uiable

All 747 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionuiableComponentsFree2 deps
Accordion Basicaccordion-basicuiableComponentsFreeno deps
Accordion Bordersaccordion-bordersuiableComponentsFreeno deps
Accordion Cardaccordion-carduiableComponentsFreeno deps
Accordion Disabledaccordion-disableduiableComponentsFreeno deps
Accordion Flushaccordion-flushuiableComponentsFreeno deps
Accordion Multipleaccordion-multipleuiableComponentsFreeno deps
AlertalertuiableComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex