BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aqua/dialog

Dialog

aqua/dialog
FreeComponent

The Aqua alert panel: soft gradient sheet with a deep drop shadow.

Live preview

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

Install it

npx shadcn@latest add https://aqua.duca.dev/r/dialog.json

Source

registry/aqua/ui/dialog.tsxaqua.duca.dev/r/dialog.json
1"use client"
2
3import * as React from "react"
4import * as DialogPrimitive from "@radix-ui/react-dialog"
5
6import { cn } from "@/lib/utils"
7
8function Dialog({
9 ...props
10}: React.ComponentProps<typeof DialogPrimitive.Root>) {
11 return <DialogPrimitive.Root data-slot="dialog" {...props} />
12}
13
14function DialogTrigger({
15 ...props
16}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {
17 return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />
18}
19
20function DialogPortal({
21 ...props
22}: React.ComponentProps<typeof DialogPrimitive.Portal>) {
23 return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />
24}
25
26function DialogClose({
27 ...props
28}: React.ComponentProps<typeof DialogPrimitive.Close>) {
29 return <DialogPrimitive.Close data-slot="dialog-close" {...props} />
30}
31
32function DialogOverlay({
33 className,
34 ...props
35}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {
36 return (
37 <DialogPrimitive.Overlay
38 data-slot="dialog-overlay"
39 className={cn(
40 "fixed inset-0 z-50 bg-[rgba(30,38,50,0.35)] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
41 className
42 )}
43 {...props}
44 />
45 )
46}
47
48function DialogContent({
49 className,
50 children,
51 ...props
52}: React.ComponentProps<typeof DialogPrimitive.Content>) {
53 return (
54 <DialogPortal>
55 <DialogOverlay />
56 <DialogPrimitive.Content
57 data-slot="dialog-content"
58 className={cn(
59 "fixed left-1/2 top-1/2 z-50 flex w-[min(480px,calc(100%-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 rounded-xl bg-[linear-gradient(180deg,#fbfbfc_0%,#eceef2_100%)] p-7 shadow-[inset_0_1px_0_rgba(255,255,255,0.9),0_0_0_1px_rgba(20,30,50,0.2),0_26px_60px_rgba(20,30,50,0.35),0_5px_14px_rgba(20,30,50,0.18)] outline-none duration-200 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
60 className
61 )}
62 {...props}
63 >
64 {children}
65 </DialogPrimitive.Content>
66 </DialogPortal>
67 )
68}
69
70function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {
71 return (
72 <div
73 data-slot="dialog-header"
74 className={cn("flex flex-col gap-1.5", className)}
75 {...props}
76 />
77 )
78}
79
80function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {
81 return (
82 <div
83// … truncated

What it pulls in

npm packages

  • @radix-ui/react-dialog

Files it writes

  • registry/aqua/ui/dialog.tsx

Facts

Registry
aqua
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
today

Go to the source

Docs on aqua aqua.duca.dev igorfelipeduca/aqua on GitHub Raw registry item This item as JSON

More from aqua

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AlertalertaquaComponentsFree1 dep
AvataravataraquaComponentsFree1 dep
BadgebadgeaquaComponentsFree2 deps
ButtonbuttonaquaComponentsFree2 deps
Chat Bubblechat-bubbleaquaComponentsFreeno deps
CheckboxcheckboxaquaComponentsFree2 deps
Code Blockcode-blockaquaComponentsFree2 deps · 2 files
CursorcursoraquaComponentsFreeno deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex