alert-dialog
agentmesh/alert-dialogFreeComponent
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/alert-dialog.jsonSource
1"use client"23import * as React from "react"4import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog"56import { cn } from "@/registry/base-vega/lib/utils"7import { Button } from "@/registry/base-vega/ui/button"89function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props) {10 return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />11}1213function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props) {14 return (15 <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />16 )17}1819function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props) {20 return (21 <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />22 )23}2425function AlertDialogOverlay({26 className,27 ...props28}: AlertDialogPrimitive.Backdrop.Props) {29 return (30 <AlertDialogPrimitive.Backdrop31 data-slot="alert-dialog-overlay"32 className={cn(33 "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",34 className35 )}36 {...props}37 />38 )39}4041function AlertDialogContent({42 className,43 size = "default",44 ...props45}: AlertDialogPrimitive.Popup.Props & {46 size?: "default" | "sm"47}) {48 return (49 <AlertDialogPortal>50 <AlertDialogOverlay />51 <AlertDialogPrimitive.Popup52 data-slot="alert-dialog-content"53 data-size={size}54 className={cn(55 "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-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg 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",56 className57 )}58 {...props}59 />60 </AlertDialogPortal>61 )62}6364function AlertDialogHeader({65 className,66 ...props67}: React.ComponentProps<"div">) {68 return (69 <div70 data-slot="alert-dialog-header"71 className={cn(72// … truncated
What it pulls in
Other registry items
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | no deps | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | no deps | |
| avataravatar | shadcn/ui | Components | Free | no deps | |
| badgebadge | shadcn/ui | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | no deps | |
| buttonbutton | shadcn/ui | Components | Free | no deps | |
| button-groupbutton-group | shadcn/ui | Components | Free | no deps |
