A custom dialog wrapper that uses HTML elements to create alert, prompt, confirm and choose dialogs, and toasts, inspired by radix/shadcn style. Provides API similar to the browser's built-in dialog methods, with better UI and more options.
The dialogs are modal <dialog> elements (showModal): while one is open, the page behind it is dimmed and inert (no
focus or clicks there), and the keyboard focus stays in the dialog; an app with key shortcuts checks dialog:modal. The toasts are not dialogs: they take no focus.
A custom dialog wrapper that uses HTML elements to create alert, prompt, confirm and choose dialogs, and toasts, inspired by radix/shadcn style. Provides API similar to the browser's built-in dialog methods, with better UI and more options. The dialogs are modal
<dialog>elements (showModal): while one is open, the page behind it is dimmed and inert (no focus or clicks there), and the keyboard focus stays in the dialog; an app with key shortcuts checksdialog:modal. The toasts are not dialogs: they take no focus.