Alert Dialog
crenspire-glass-ui/alert-dialogFreeComponent
A modal dialog that interrupts the user with important content and expects a response.
Live preview
live · rendered by the registry
Rendered by crenspire/glass-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://glass-ui.crenspire.com/r/alert-dialog.jsonSource
1"use client"23import * as React from "react"4import {5 AlertDialog as BaseAlertDialog,6 AlertDialogAction,7 AlertDialogCancel,8 AlertDialogContent as BaseAlertDialogContent,9 AlertDialogDescription,10 AlertDialogFooter,11 AlertDialogHeader,12 AlertDialogTitle,13 AlertDialogTrigger,14} from "@/components/ui/alert-dialog"15import { cn } from "@/lib/utils"1617export interface AlertDialogContentProps extends React.ComponentProps<typeof BaseAlertDialogContent> {18 animated?: boolean19}2021/**22 * Glass UI Alert Dialog - Enhanced alert dialog with glassy effects23 */24export const AlertDialogContent = React.forwardRef<25 React.ElementRef<typeof BaseAlertDialogContent>,26 AlertDialogContentProps27>(({ className, variant = "glass", animated = true, ...props }, ref) => {28 return (29 <BaseAlertDialogContent30 ref={ref}31 variant={variant}32 className={cn(33 animated && "backdrop-blur-[var(--blur-lg)]",34 className35 )}36 {...props}37 />38 )39})40AlertDialogContent.displayName = "AlertDialogContent"4142export {43 BaseAlertDialog as AlertDialog,44 AlertDialogTrigger,45 AlertDialogHeader,46 AlertDialogFooter,47 AlertDialogTitle,48 AlertDialogDescription,49 AlertDialogAction,50 AlertDialogCancel,51}52
What it pulls in
npm packages
Other registry items
Files it writes
More from crenspire/glass-ui
All 49 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | crenspire/glass-ui | Components | Free | 2 deps · 5 files | |
| Alertalert | crenspire/glass-ui | Components | Free | no deps · 5 files | |
| Avataravatar | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Badgebadge | crenspire/glass-ui | Components | Free | no deps · 5 files | |
| Breadcrumbbreadcrumb | crenspire/glass-ui | Components | Free | 2 deps · 5 files | |
| Buttonbutton | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Button Groupbutton-group | crenspire/glass-ui | Components | Free | no deps · 5 files | |
| Calendarcalendar | crenspire/glass-ui | Components | Free | 3 deps · 5 files |
