BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/octane/separator

Separator

octane/separator
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/separator.json

Source

ui/separator.tsrxraw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/separator.json
1// Base UI base separator — runs on the @octanejs/base-ui `Separator` primitive.
2//
3// THE CLASS STRING IS DELIBERATELY THE ARIA BASE'S, NOT THE RADIX BASE'S, and this is the one
4// family where copying the wrong base is a real bug rather than a cosmetic risk. The
5// orientation-conditional utilities must key off the attribute the primitive actually emits:
6//
7// Radix sets `data-orientation` -> `data-horizontal:h-px`
8// RAC sets `aria-orientation` -> `aria-[orientation=horizontal]:h-px`
9// Base UI sets `aria-orientation` -> same as RAC (verified in the primitive: it renders
10// `role="separator"` plus `aria-orientation={orientation}`)
11//
12// Taking the Radix string here would produce a separator with no height or width at all, and
13// nothing in a class-string comparison would flag it. Upstream's own bases diverge here for
14// exactly this reason. The non-conditional utilities stay in step with the other bases.
15import { Separator as SeparatorPrimitive } from '@octanejs/base-ui/separator';
16
17import { cn } from '@/lib/utils';
18
19export interface SeparatorProps extends Record<string, unknown> {
20 className?: string;
21 orientation?: 'horizontal' | 'vertical';
22}
23
24export function Separator({ className, orientation = 'horizontal', ...props }: SeparatorProps) @{
25 <SeparatorPrimitive
26 data-slot="separator"
27 orientation={orientation}
28 className={cn(
29 'block shrink-0 border-0 bg-border aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:self-stretch [:is(hr)]:h-px [:is(hr)]:w-full',
30 className,
31 )}
32 {...props}
33 />
34}

What it pulls in

npm packages

  • @octanejs/base-ui@0.1.28

Other registry items

  • @octane/utils

Files it writes

  • ui/separator.tsrx

Facts

Registry
octane
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-07
Last confirmed
2 days ago

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
BlockDex

Built by

Kynth Studios

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 Studios

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 Studios

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