lion-dialog
is a component wrapping a modal dialog controller.
Its purpose is to make it easy to use our Overlay System declaratively.
See our storybook for a live demo and documentation
npm i --save @lion/dialog
import '@lion/dialog/lion-dialog.js';
<lion-dialog>
<div slot="content">
This is a dialog
<button @click=${e => e.target.dispatchEvent(new Event('close-overlay', { bubbles: true }))}>x</button>
<div>
<button slot="invoker">Click me</button>
</lion-dialog>