BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/pane/tabs

tabs

pane/tabs
FreeComponent

pane publishes no description for this item.

Install it

npx shadcn@latest add https://pane.theui.company/r/tabs.json

Source

registry/pane/ui/tabs.tsxpane.theui.company/r/tabs.json
1"use client";
2
3import { motion } from "motion/react";
4import { Tabs as TabsPrimitive } from "radix-ui";
5import * as React from "react";
6import { Pane } from "@/components/ui/pane";
7import { GLASS_SPRING } from "@/lib/glass/config";
8import { cn } from "@/lib/utils";
9
10interface TabsContextValue {
11 value?: string;
12 indicatorId: string;
13}
14
15const TabsContext = React.createContext<TabsContextValue | null>(null);
16
17function Tabs({
18 value,
19 defaultValue,
20 onValueChange,
21 className,
22 ...props
23}: React.ComponentProps<typeof TabsPrimitive.Root>) {
24 const indicatorId = React.useId();
25 const [internalValue, setInternalValue] = React.useState(defaultValue);
26 const activeValue = value ?? internalValue;
27
28 return (
29 <TabsContext.Provider value={{ value: activeValue, indicatorId }}>
30 <TabsPrimitive.Root
31 value={value}
32 defaultValue={defaultValue}
33 onValueChange={(next) => {
34 setInternalValue(next);
35 onValueChange?.(next);
36 }}
37 data-slot="tabs"
38 className={cn("flex flex-col gap-2", className)}
39 {...props}
40 />
41 </TabsContext.Provider>
42 );
43}
44
45function TabsList({
46 className,
47 ...props
48}: React.ComponentProps<typeof TabsPrimitive.List>) {
49 return (
50 <Pane variant="clear" radius={16} className="inline-flex w-fit">
51 <TabsPrimitive.List
52 data-slot="tabs-list"
53 className={cn(
54 "relative inline-flex h-10 items-center gap-1 p-1",
55 className,
56 )}
57 {...props}
58 />
59 </Pane>
60 );
61}
62
63function TabsTrigger({
64 className,
65 value,
66 children,
67 ...props
68}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
69 const ctx = React.useContext(TabsContext);
70 const isActive = ctx?.value === value;
71
72 return (
73 <TabsPrimitive.Trigger
74 value={value}
75 data-slot="tabs-trigger"
76 className={cn(
77 "relative inline-flex h-8 flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-xl px-3 text-sm font-medium text-muted-foreground outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[var(--pane-highlight)] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground [&_svg]:size-4 [&_svg]:shrink-0",
78 className,
79 )}
80 {...props}
81 >
82 {isActive ? (
83 <motion.div
84 layoutId={`${ctx?.indicatorId}-indicator`}
85 transition={GLASS_SPRING.hover}
86 className="absolute inset-0"
87 >
88// … truncated

What it pulls in

npm packages

  • radix-ui
  • motion

Other registry items

  • @pane/pane
  • @pane/utils

Files it writes

  • registry/pane/ui/tabs.tsx

Facts

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

Go to the source

pane.theui.company deniiiiz-i/pane on GitHub Raw registry item This item as JSON

More from pane

All 25 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
badgebadgepaneComponentsFree2 deps
buttonbuttonpaneComponentsFree2 deps
cardcardpaneComponentsFreeno deps
dialogdialogpaneComponentsFree2 deps
inputinputpaneComponentsFreeno deps
panepanepaneComponentsFree1 dep
sheetsheetpaneComponentsFree3 deps
switchswitchpaneComponentsFree2 deps

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 on what can be checked

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