BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/mcoli-ui-registry/mc-dialog

MicroClub Dialog

mcoli-ui-registry/mc-dialog
FreeComponent

A dialog component for MicroClub UI

Live preview

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

Install it

npx shadcn@latest add https://mcoli-ui.microclub.info/r/mc-dialog.json

Source

registry/ui/mc-dialog.tsxmcoli-ui.microclub.info/r/mc-dialog.json
1'use client';
2
3import * as React from 'react';
4import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
5import { XIcon } from 'lucide-react';
6
7import { cn } from '@/lib/utils';
8import { McButton } from '@/registry/ui/mc-button';
9
10function McDialog({ ...props }: DialogPrimitive.Root.Props) {
11 return <DialogPrimitive.Root data-slot="dialog" {...props} />;
12}
13
14function McDialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {
15 return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;
16}
17
18function McDialogPortal({ ...props }: DialogPrimitive.Portal.Props) {
19 return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;
20}
21
22function McDialogClose({ ...props }: DialogPrimitive.Close.Props) {
23 return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;
24}
25
26function McDialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props) {
27 return (
28 <DialogPrimitive.Backdrop
29 data-slot="dialog-overlay"
30 className={cn(
31 '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',
32 className
33 )}
34 {...props}
35 />
36 );
37}
38
39function McDialogContent({
40 className,
41 children,
42 showCloseButton = true,
43 ...props
44}: DialogPrimitive.Popup.Props & {
45 showCloseButton?: boolean;
46}) {
47 return (
48 <McDialogPortal>
49 <McDialogOverlay />
50 <DialogPrimitive.Popup
51 data-slot="dialog-content"
52 className={cn(
53 'fixed top-1/2 left-1/2 z-50 grid w-[min(423px,calc(100%-2rem))] gap-4 rounded-lg border bg-popover p-6 text-sm text-popover-foreground opacity-100 -translate-x-1/2 -translate-y-1/2 duration-100 outline-none sm:min-h-[344px] data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',
54 className
55 )}
56 {...props}
57 >
58 {children}
59 {showCloseButton && (
60 <DialogPrimitive.Close
61 data-slot="dialog-close"
62 render={
63 <McButton
64 variant="tertiary"
65 className="absolute top-2 right-2 !bg-transparent text-muted-foreground shadow-none hover:!bg-transparent hover:text-foreground active:text-foreground focus:outline-none focus-visible:ring-0 focus-visible:ring-transparent focus-visible:shadow-none"
66 size="sm"
67 icon="only"
68// … truncated

What it pulls in

npm packages

  • @base-ui/react
  • lucide-react

Files it writes

  • registry/ui/mc-dialog.tsx

Facts

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

Go to the source

Docs on mcoli-ui-registry mcoli-ui.microclub.info MicroClub-USTHB/mcoli-ui on GitHub Raw registry item This item as JSON

More from mcoli-ui-registry

All 42 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
MicroClub Accordionmc-accordionmcoli-ui-registryComponentsFree2 deps
MicroClub Alertmc-alertmcoli-ui-registryComponentsFree1 dep
MicroClub Alert Dialogmc-alert-dialogmcoli-ui-registryComponentsFree1 dep
MicroClub Avatarmc-avatarmcoli-ui-registryComponentsFree1 dep
MicroClub Badgemc-badgemcoli-ui-registryComponentsFree1 dep
MicroClub Breadcrumbmc-breadcrumbmcoli-ui-registryComponentsFree2 deps
MicroClub Buttonmc-buttonmcoli-ui-registryComponentsFree2 deps
MicroClub Calendarmc-calendarmcoli-ui-registryComponentsFree3 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