- @lion/checkbox-group@0.9.1 - @lion/dialog@0.6.3 - @lion/fieldset@0.11.1 - @lion/form-system@0.8.3 - @lion/form@0.5.1 - @lion/icon@0.5.2 - @lion/input-datepicker@0.13.3 - @lion/overlays@0.15.3 - @lion/radio-group@0.9.1 - @lion/select-rich@0.17.3 - @lion/tooltip@0.10.4 |
||
|---|---|---|
| .. | ||
| src | ||
| stories | ||
| test | ||
| CHANGELOG.md | ||
| index.js | ||
| lion-dialog.js | ||
| package.json | ||
| README.md | ||
Dialog
lion-dialog is a component wrapping a modal dialog controller.
Its purpose is to make it easy to use our Overlay System declaratively.
Live Demo/Documentation
See our storybook for a live demo and documentation
How to use
Installation
npm i --save @lion/dialog
import '@lion/dialog/lion-dialog.js';
Example
<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>