BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/remocn/dialog

UI Dialog

remocn/dialog
FreeComponent

A modal dialog whose opened/closed state is a pure function of the timeline; the backdrop dim and popup zoom are keyframed presets, with a close button and a primary action. Self-contained — pair it with the Button as a trigger (see the example).

Install it

npx shadcn@latest add https://www.remocn.dev/r/dialog.json

Source

registry/remocn-ui/dialog/index.tsxwww.remocn.dev/r/dialog.json
1"use client";
2
3import { type RemocnTheme, useRemocnTheme } from "@/lib/remocn-ui";
4
5export type DialogState = "opened" | "closed";
6
7export interface DialogProps {
8 state?: DialogState;
9 style?: DialogStyle;
10 title?: string;
11 description?: string;
12 actionLabel?: string;
13 cancelLabel?: string;
14 theme?: Partial<RemocnTheme>;
15 className?: string;
16}
17
18const POPUP_WIDTH = 440;
19const MAX_OVERLAY_ALPHA = 0.5;
20
21export interface DialogStyle {
22 overlayOpacity: number;
23 popupOpacity: number;
24 popupScale: number;
25 popupTranslateY: number;
26}
27
28export interface DialogStyleContext {
29 popoverBg: string;
30 popoverFg: string;
31 mutedFg: string;
32 border: string;
33 radius: number;
34 actionBg: string;
35 actionFg: string;
36 cancelFg: string;
37}
38
39export function dialogStyleContext(theme: RemocnTheme): DialogStyleContext {
40 return {
41 popoverBg: theme.popover,
42 popoverFg: theme.popoverForeground,
43 mutedFg: theme.mutedForeground,
44 border: theme.border,
45 radius: theme.radius,
46 actionBg: theme.primary,
47 actionFg: theme.primaryForeground,
48 cancelFg: theme.foreground,
49 };
50}
51
52export function dialogStyle(
53 state: DialogState,
54 _ctx: DialogStyleContext,
55): DialogStyle {
56 switch (state) {
57 case "opened":
58 return {
59 overlayOpacity: 1,
60 popupOpacity: 1,
61 popupScale: 1,
62 popupTranslateY: 0,
63 };
64 default:
65 return {
66 overlayOpacity: 0,
67 popupOpacity: 0,
68 popupScale: 0.95,
69 popupTranslateY: 8,
70 };
71 }
72}
73
74export function Dialog({
75 state = "closed",
76 style,
77 title = "Edit profile",
78 description = "Make changes to your profile here. Click save when you're done.",
79 actionLabel = "Save changes",
80 cancelLabel = "Cancel",
81 theme: themeOverride,
82 className,
83}: DialogProps) {
84 const theme = useRemocnTheme(themeOverride, "light");
85
86 const ctx = dialogStyleContext(theme);
87 const v = style ?? dialogStyle(state, ctx);
88
89 const buttonBase: React.CSSProperties = {
90 height: 40,
91 padding: "0 20px",
92 fontSize: 15,
93 fontWeight: 500,
94 letterSpacing: "-0.01em",
95 borderRadius: ctx.radius,
96 display: "inline-flex",
97 alignItems: "center",
98 justifyContent: "center",
99 cursor: "pointer",
100 };
101
102 return (
103 <div
104 style={{
105 position: "absolute",
106 inset: 0,
107 display: "flex",
108 alignItems: "center",
109 justifyContent: "center",
110 fontFamily:
111 "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",
112// … truncated

What it pulls in

npm packages

  • remotion

Other registry items

  • @remocn/remocn-ui

Files it writes

  • registry/remocn-ui/dialog/index.tsx
  • registry/remocn-ui/dialog/use-dialog-transition.ts

Facts

Registry
remocn
Type
registry:component
Access
Free
Files written
2
Licence
the repository states none
In the index
at or before 2026-08-10
Last confirmed
yesterday

Go to the source

www.remocn.dev Remocn/remocn on GitHub Raw registry item This item as JSON

More from remocn

All 282 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
UI AccordionaccordionremocnComponentsFree1 dep · 2 files
UI AI Prompt Flowai-prompt-flowremocnComponentsFree1 dep
UI Alert Dialogalert-dialogremocnComponentsFree1 dep · 2 files
Animated Bar Chartanimated-bar-chartremocnComponentsFree1 dep
Animated Line Chartanimated-line-chartremocnComponentsFree1 dep
ASCII Dissolveascii-dissolveremocnComponentsFree2 deps
ASCII Renderascii-renderremocnComponentsFree1 dep
BackdropbackdropremocnComponentsFree1 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