Dialog
A dialog is a type of modal window that appears in front of app content to provide critical information or ask for a decision.
API DocumentationImport
import { Dialog } from "@aeonkit/react";Usage
Default
<Button variant="solid" rounded onClick={() => setOpen(true)}> <LuAlertOctagon className="text-slate-50" /> Open Dialog</Button><Dialog open={open} onOpenChange={(o) => setOpen(o)}> <Dialog.Overlay /> <Dialog.Content> <Dialog.Header title="Hashtag Jawn Austin" closeIcon={<Dialog.Close className="justify-end" />} /> <Dialog.Body> I'm baby ugh actually chicharrones venmo, yes plz leggings godard. Tilde fingerstache chillwave, roof party brunch knausgaard godard pork belly asymmetrical subway tile mustache hoodie meh taxidermy. Normcore vinyl williamsburg blue bottle mumblecore. </Dialog.Body> <Dialog.Footer> <Button variant="link" onClick={() => setOpen(false)}> Close </Button> <Button onClick={() => setOpen(false)}>Save</Button> </Dialog.Footer> </Dialog.Content></Dialog>Props
API Interface: DialogProps
API Interface: DialogCloseProps
API Interface: DialogContentProps
- title
-
stringThe title of the dialog.
- closeIcon?
-
ReactNodeThe close button.
API Interface: DialogHeaderProps
API Interface: DialogOverlayProps
API Interface: DialogBodyProps
API Interface: DialogFooterProps