Aurora Alert Dialog
aurora-dinglebear-ai/aurora-alert-dialogFreeComponent
Confirmation dialog built on the Aurora modal surface for destructive or high-friction decisions.
Install it
npx shadcn@latest add https://aurora.dinglebear.ai/r/aurora-alert-dialog.jsonSource
1"use client"23import * as React from "react"4import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"5import { Info, TriangleAlert } from "lucide-react"6import { cn } from "@/lib/utils"7import { Button } from "@/registry/aurora/ui/button"89const AlertDialogTrigger = AlertDialogPrimitive.Trigger10const AlertDialogPortal = AlertDialogPrimitive.Portal11const AlertDialogAction = AlertDialogPrimitive.Action12const AlertDialogCancel = AlertDialogPrimitive.Cancel1314function AlertDialogOverlay({15 ref,16 className,17 style,18 ...props19}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay> & {20 ref?: React.Ref<React.ComponentRef<typeof AlertDialogPrimitive.Overlay>>21}) {22 return (23 <AlertDialogPrimitive.Overlay24 ref={ref}25 data-slot="alert-dialog-overlay"26 className={cn(27 "fixed inset-0 z-50 backdrop-blur-[2px]",28 "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",29 className30 )}31 style={{ backgroundColor: "var(--aurora-overlay)", ...style }}32 {...props}33 />34 )35}3637function AlertDialogContent({38 ref,39 className,40 children,41 size = "default",42 style,43 ...props44}: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {45 size?: "default" | "sm"46 ref?: React.Ref<React.ComponentRef<typeof AlertDialogPrimitive.Content>>47}) {48 return (49 <AlertDialogPortal>50 <AlertDialogOverlay />51 <AlertDialogPrimitive.Content52 ref={ref}53 data-slot="alert-dialog-content"54 data-size={size}55 className={cn(56 "fixed left-1/2 top-1/2 z-50 grid w-full max-w-[calc(100vw-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-[var(--aurora-radius-3)] border p-6 outline-none",57 "data-[size=sm]:max-w-sm data-[size=default]:sm:max-w-lg",58 "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",59 "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",60 className61 )}62 style={{63 background:64 "linear-gradient(180deg, var(--aurora-panel-strong-top), var(--aurora-panel-strong))",65 borderColor:66 "color-mix(in srgb, var(--aurora-border-default) 55%, var(--aurora-page-bg))",67 boxShadow: "var(--aurora-shadow-strong), var(--aurora-highlight-strong)",68 color: "var(--aurora-text-primary)",69 ...style,70 }}71// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from aurora
All 176 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora Accordionaurora-accordion | aurora | Components | Free | 2 deps | |
| Aurora Aspect Ratioaurora-aspect-ratio | aurora | Components | Free | no deps | |
| Aurora Avataraurora-avatar | aurora | Components | Free | 1 dep | |
| Aurora Badgeaurora-badge | aurora | Components | Free | 2 deps | |
| Aurora Banneraurora-banner | aurora | Components | Free | 1 dep | |
| Aurora Breadcrumbaurora-breadcrumb | aurora | Components | Free | 2 deps | |
| Aurora Buttonaurora-button | aurora | Components | Free | 2 deps | |
| Aurora Button Groupaurora-button-group | aurora | Components | Free | no deps |
