@cfware/dialog

1.0.0 • Public • Published

@cfware/dialog NPM Version

Dialog overlays

Usage

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');
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

Package Sidebar

Install

npm i @cfware/dialog

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

8.7 kB

Total Files

5

Last publish

Collaborators

  • coreyfarrell