Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cfware/dialog
Dialog overlays
https://github.com/cfware/dialog
Last synced: 29 days ago
JSON representation
Dialog overlays
- Host: GitHub
- URL: https://github.com/cfware/dialog
- Owner: cfware
- License: mit
- Created: 2020-09-26T15:07:39.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T03:47:16.000Z (about 1 year ago)
- Last Synced: 2024-11-12T19:47:27.491Z (about 1 month ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @cfware/dialog [![NPM Version][npm-image]][npm-url]
Dialog overlays
## Usage
```js
import {html} from '@cfware/shadow-element';
import {dialogAlert, dialogConfirm} '@cfware/dialog';async function showAlert() {
await dialogAlert('Title', html`html tagged template`);
console.log('dialog closed');
}async function showConfirm() {
const result = await dialogConfirm('Continue', html`Decide`);
console.log(result ? 'confirmed' : 'canceled');
}```
[npm-image]: https://img.shields.io/npm/v/@cfware/dialog.svg
[npm-url]: https://npmjs.org/package/@cfware/dialog