BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/neobrutal-ui/ndialog
This component no longer exists. It was in neobrutal-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-06 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

ndialog

neobrutal-ui/ndialog
RemovedComponent

neobrutal-ui publishes no description for this item.

Install it

npx shadcn@latest add https://neobrutal-ui.andongmin.com/r/ndialog.json

Source

src/components/ui/dialog.tsxneobrutal-ui.andongmin.com/r/ndialog.json · first 6 KB
1"use client";
2
3import * as React from "react";
4import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
5
6import { cn } from "@/lib/utils";
7import { Button } from "@/components/ui/button";
8import { XIcon } from "lucide-react";
9
10type AutoFocusEventHandler = (event: Event) => void;
11type FocusTarget = DialogPrimitive.Popup.Props["initialFocus"];
12type PointerDownOutsideEvent = CustomEvent<{ originalEvent: PointerEvent }>;
13type FocusOutsideEvent = CustomEvent<{ originalEvent: FocusEvent }>;
14type DismissableLayerHandlers = {
15 onEscapeKeyDown?: (event: KeyboardEvent) => void;
16 onFocusOutside?: (event: FocusOutsideEvent) => void;
17 onInteractOutside?: (event: FocusOutsideEvent | PointerDownOutsideEvent) => void;
18 onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
19};
20type DialogPortalProps = DialogPrimitive.Portal.Props & {
21 forceMount?: boolean;
22};
23type DialogOverlayProps = DialogPrimitive.Backdrop.Props & {
24 asChild?: boolean;
25 children?: React.ReactNode;
26 forceMount?: boolean;
27};
28type DialogContentProps = DialogPrimitive.Popup.Props & {
29 asChild?: boolean;
30 children?: React.ReactNode;
31 forceMount?: boolean;
32 onCloseAutoFocus?: AutoFocusEventHandler;
33 onOpenAutoFocus?: AutoFocusEventHandler;
34 showCloseButton?: boolean;
35} & DismissableLayerHandlers;
36type DialogContextProps = {
37 dismissableLayerHandlersRef: React.RefObject<DismissableLayerHandlers>;
38 open: boolean;
39};
40
41type PreventableBaseUIEvent = {
42 readonly baseUIHandlerPrevented?: boolean;
43 readonly defaultPrevented?: boolean;
44 preventBaseUIHandler?: () => void;
45};
46type EventHandler = (...args: unknown[]) => unknown;
47type RenderFunction = (props: Record<string, unknown>, state: unknown) => React.ReactElement;
48
49function adaptEventHandlers(props: Record<string, unknown>, beforeBaseUIHandler: boolean) {
50 const eventHandlers: Record<string, EventHandler> = {};
51
52 for (const [name, handler] of Object.entries(props)) {
53 if (!/^on[A-Z]/.test(name) || typeof handler !== "function") {
54 continue;
55 }
56
57 eventHandlers[name] = (...args) => {
58 const event = args[0] as PreventableBaseUIEvent | undefined;
59 if (beforeBaseUIHandler && event?.defaultPrevented) {
60 event.preventBaseUIHandler?.();
61 }
62 if (beforeBaseUIHandler && event?.baseUIHandlerPrevented) {
63 return undefined;
64 }
65
66 const result = handler(...args);
67 if (!beforeBaseUIHandler && event?.defaultPrevented) {
68 event.preventBaseUIHandler?.();
69 }
70// … truncated

What it pulls in

npm packages

  • @base-ui/react

Files it writes

  • src/components/ui/dialog.tsx

Facts

Registry
neobrutal-ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-02
Last confirmed
13 days ago

Go to the source

neobrutal-ui.andongmin.com andongmin94/neobrutal-ui on GitHub Raw registry item This item as JSON

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