BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/octane/tabs

Tabs

octane/tabs
FreeComponent

octane publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://raw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/tabs.json

Source

ui/tabs.tsrxraw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/tabs.json
1// Base UI base tabs — TRANSCRIBED from upstream's `bases/base-ui/ui/tabs.tsx` (maintainer-supplied),
2// class strings verbatim. Runs on @octanejs/base-ui's `Tabs`, which was ported for this family:
3// Root / List / Tab / Panel.
4//
5// ONE DEPARTURE FROM THE SOURCE, FORCED BY A VERSION SKEW. Upstream writes its orientation variants
6// as `data-horizontal:` / `data-vertical:` — bare attributes. The pinned @octanejs/base-ui (v1.6.0)
7// converts the orientation state to `data-orientation="horizontal" | "vertical"` instead, so those
8// utilities would match nothing: the root would never switch to a column, and every
9// `group-data-horizontal/tabs:` and `group-data-vertical/tabs:` selector on the trigger would be
10// dead. They are written as `data-[orientation=…]:` here.
11//
12// This is the SAME skew the slider hit, and it is not a porting mistake in either layer — shadcn's
13// Base UI sources target a newer Base UI than the pin this package binds. The primitive stays
14// faithful to its pin; the adaptation belongs here. When the binding moves to a release that emits
15// the bare attributes, these revert to upstream's spelling.
16//
17// `data-active` on the trigger needs no such treatment: the pin emits it exactly as upstream's
18// classes expect (verified by rendering).
19//
20// Octane adaptations: no `"use client"`.
21import { cva, type VariantProps } from 'class-variance-authority';
22import { Tabs as TabsPrimitive } from '@octanejs/base-ui/tabs';
23
24import { cn } from '@/lib/utils';
25
26type Props = { className?: string } & Record<string, unknown>;
27
28export interface TabsProps extends Props {
29 orientation?: 'horizontal' | 'vertical';
30}
31
32export function Tabs({ className, orientation = 'horizontal', ...props }: TabsProps) @{
33 <TabsPrimitive.Root
34 data-slot="tabs"
35 data-orientation={orientation}
36 orientation={orientation}
37 className={cn('group/tabs flex gap-2 data-[orientation=horizontal]:flex-col', className)}
38 {...props}
39 />
40}
41
42export const tabsListVariants = cva(
43 'group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-8 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none',
44 {
45 variants: {
46 variant: {
47 default: 'bg-muted',
48 line: 'gap-1 bg-transparent',
49 },
50 },
51 defaultVariants: {
52 variant: 'default',
53 },
54 },
55);
56
57export interface TabsListProps extends Props {
58// … truncated

What it pulls in

npm packages

  • @octanejs/base-ui@0.1.35
  • class-variance-authority

Other registry items

  • @octane/utils

Files it writes

  • ui/tabs.tsrx

Facts

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

Go to the source

Docs on octane octanejs.dev octanejs/octane on GitHub Raw registry item This item as JSON

More from octane

All 44 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionoctaneComponentsFree2 deps
AlertalertoctaneComponentsFree1 dep
Alert Dialogalert-dialogoctaneComponentsFree1 dep
Aspect Ratioaspect-ratiooctaneComponentsFreeno deps
AvataravataroctaneComponentsFree1 dep
BadgebadgeoctaneComponentsFree1 dep
BreadcrumbbreadcrumboctaneComponentsFree1 dep
ButtonbuttonoctaneComponentsFree2 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 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