Home Dialog

The Dialog component presents important information or actions in a modal window. It overlays the page content and focuses the user’s attention on a specific task or message.

Installation

npm
npx phpxui add Dialog

Usage

use Lib\PHPXUI\ {
    Dialog,
    DialogContent,
    DialogDescription,
    DialogHeader,
    DialogTitle,
    DialogTrigger,
}

<Dialog>
    <DialogTrigger>Open</DialogTrigger>
    <DialogContent>
        <DialogHeader>
            <DialogTitle>Are you absolutely sure?</DialogTitle>
            <DialogDescription>
                This action cannot be undone. This will permanently delete your account
                and remove your data from our servers.
            </DialogDescription>
        </DialogHeader>
    </DialogContent>
</Dialog>
        

Examples

Custom close button