package
Dialog overlays
npm install @cfware/dialogGitHub-flavored package documentation.
Across all versions, last 30 days.
106 in 30 days
Runtime metadata.
Dialog overlays
import {html} from '@cfware/shadow-element';
import {dialogAlert, dialogConfirm} '@cfware/dialog';
async function showAlert() {
await dialogAlert('Title', html`<div>html tagged template</div>`);
console.log('dialog closed');
}
async function showConfirm() {
const result = await dialogConfirm('Continue', html`<div>Decide</div>`);
console.log(result ? 'confirmed' : 'canceled');
}
Estimated unpacked size across 9 packages.
260.5 kB
Includes dependencies.