BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/octane/dialog

Dialog

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

Source

ui/dialog.tsrxraw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/dialog.json
1// Base UI base dialog — runs on @octanejs/base-ui's Dialog.
2// Part mapping: Overlay -> Backdrop, Content -> Popup, and the close affordance composes a
3// Button through Base UI's render-as-ELEMENT contract rather than radix's `asChild`.
4//
5// `data-open:`/`data-closed:` need no adaptation — the radix base already uses that exact form
6// and Base UI emits the same attributes.
7//
8// Drops upstream's `cn-font-heading` on the title, matching the react-aria base and this base's
9// alert-dialog: the package ships the utilities-inlined flavor and nothing defines that hook.
10//
11// UNVERIFIED PROVENANCE: class strings come from this package's radix base rather than
12// transcribed from upstream's Base UI source.
13import { createElement, type OctaneNode } from 'octane';
14import { Dialog as DialogPrimitive } from '@octanejs/base-ui/dialog';
15import { XIcon } from '@octanejs/lucide';
16
17import { cn } from '@/lib/utils';
18import { Button } from '@/components/ui/button';
19
20type Props = { className?: string; children?: OctaneNode } & Record<string, unknown>;
21
22export function Dialog(props: Record<string, unknown>) @{
23 <DialogPrimitive.Root data-slot="dialog" {...props} />
24}
25
26export function DialogTrigger(props: Record<string, unknown>) @{
27 <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />
28}
29
30export function DialogPortal(props: Record<string, unknown>) @{
31 <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />
32}
33
34export function DialogClose(props: Record<string, unknown>) @{
35 <DialogPrimitive.Close data-slot="dialog-close" {...props} />
36}
37
38export function DialogOverlay({ className, ...props }: Props) @{
39 <DialogPrimitive.Backdrop
40 data-slot="dialog-overlay"
41 className={cn(
42 'fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',
43 className,
44 )}
45 {...props}
46 />
47}
48
49export interface DialogContentProps extends Props {
50 showCloseButton?: boolean;
51}
52
53export function DialogContent({
54 className,
55 children,
56 showCloseButton = true,
57 ...props
58}: DialogContentProps) {
59 return createElement(
60 DialogPrimitive.Portal,
61 { 'data-slot': 'dialog-portal' },
62 createElement(DialogOverlay, { key: 'overlay' }),
63 createElement(
64 DialogPrimitive.Popup,
65 {
66 key: 'content',
67 'data-slot': 'dialog-content',
68 className: cn(
69// … truncated

What it pulls in

npm packages

  • @octanejs/base-ui@0.1.35
  • @octanejs/lucide@0.1.32

Other registry items

  • @octane/button
  • @octane/utils

Files it writes

  • ui/dialog.tsrx

Facts

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

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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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