<Dialog>
<DialogTrigger>Open dialog</DialogTrigger>
<DialogBody size="sm">
<DialogHeader>
<DialogTitle>Publish changes</DialogTitle>
</DialogHeader>
<DialogContent>
<DialogDescription>
Visitors see the new version as soon as it is published.
</DialogDescription>
</DialogContent>
<DialogFooter>
<DialogClose>Close</DialogClose>
</DialogFooter>
</DialogBody>
</Dialog>import { Dialog, DialogTrigger, DialogBody, DialogHeader, DialogTitle, DialogContent, DialogDescription, DialogFooter, DialogClose } from "@dash/server";Prop | Type | Description |
|---|---|---|
| defaultOpen | boolean | |
| open | boolean | |
| onOpenChange | (open: boolean) => void |
Prop | Type | Description |
|---|---|---|
| size | "sm" | "md" | "lg" |