Skip to content

AlertDialogContent

Open .md
Live preview

Loading example…

The panel: role="alertdialog", no close button, outside presses ignored, focus on Cancel.

import { AlertDialogContent } from "@jcsoftdev/ui/overlays";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/overlays/alert-dialog.

<AlertDialogContent
trigger={<Button variant="danger">Delete appointment</Button>}
title="Delete this appointment?"
description="Marco Salazar will be notified and the slot becomes free."
confirmLabel="Delete"
tone="danger"
/>
Prop Type Default Description
children ReactNode
material "solid" | "glass" | "glass-clear" | "liquid" | "liquid-clear"
container HTMLElement | null
className string
classNames Partial<Record<AlertDialogPart, string>> Per-part classes: overlay and root apply here.

* marks a required prop.

packages/ui/src/overlays/alert-dialog/alert-dialog.tsx