BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/muffled-ui-registry/alert-dialog

Alert Dialog

muffled-ui-registry/alert-dialog
FreeComponent

Modal confirmation on paper. Hairline border, ink wash overlay, no shadow or blur.

Live preview

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

Install it

npx shadcn@latest add https://ui.muffled.studio/r/alert-dialog.json

Source

registry/ui/alert-dialog.tsxui.muffled.studio/r/alert-dialog.json
1"use client"
2
3import * as React from "react"
4import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog"
5
6import { cn, modalSurfaceClasses } from "@/registry/lib/surface"
7import { ThemedPortalShell } from "@/registry/lib/portal-container"
8import { Button } from "@/registry/ui/button"
9
10function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props) {
11 return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
12}
13
14function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props) {
15 return (
16 <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
17 )
18}
19
20function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props) {
21 return (
22 <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
23 )
24}
25
26function AlertDialogOverlay({
27 className,
28 ...props
29}: AlertDialogPrimitive.Backdrop.Props) {
30 return (
31 <AlertDialogPrimitive.Backdrop
32 data-slot="alert-dialog-overlay"
33 className={cn(
34 "fixed inset-0 z-50 bg-foreground/24 duration-[var(--d-drift)] ease-[var(--ease-drift)] data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
35 className
36 )}
37 {...props}
38 />
39 )
40}
41
42function AlertDialogContent({
43 className,
44 size = "default",
45 ...props
46}: AlertDialogPrimitive.Popup.Props & {
47 size?: "default" | "sm"
48}) {
49 return (
50 <AlertDialogPortal>
51 <ThemedPortalShell>
52 <AlertDialogOverlay />
53 <AlertDialogPrimitive.Popup
54 data-slot="alert-dialog-content"
55 data-size={size}
56 className={cn(
57 "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 p-4 font-sans data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm",
58 modalSurfaceClasses(),
59 className
60 )}
61 {...props}
62 />
63 </ThemedPortalShell>
64 </AlertDialogPortal>
65 )
66}
67
68function AlertDialogHeader({
69 className,
70 ...props
71}: React.ComponentProps<"div">) {
72 return (
73 <div
74 data-slot="alert-dialog-header"
75 className={cn(
76// … truncated

What it pulls in

npm packages

  • @base-ui/react

Other registry items

  • @muffled/surface
  • @muffled/button

Files it writes

  • registry/ui/alert-dialog.tsx

Facts

Registry
muffled-ui-registry
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

Docs on muffled-ui-registry ui.muffled.studio muffled-studio/muffled.ui on GitHub Raw registry item This item as JSON

More from muffled-ui-registry

All 55 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionmuffled-ui-registryComponentsFree2 deps
Alertalertmuffled-ui-registryComponentsFree1 dep
Avataravatarmuffled-ui-registryComponentsFree1 dep
Badgebadgemuffled-ui-registryComponentsFree2 deps
Breadcrumbbreadcrumbmuffled-ui-registryComponentsFree2 deps
Buttonbuttonmuffled-ui-registryComponentsFree2 deps
Button Groupbutton-groupmuffled-ui-registryComponentsFree2 deps
Calendarcalendarmuffled-ui-registryComponentsFree2 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