lion/packages/dialog
2020-01-16 15:47:59 +01:00
..
src fix: deleted obsolete overlay event names 2019-12-11 15:51:37 +01:00
stories feat: improved storybook demos 2020-01-13 13:58:03 +01:00
test fix: no longer use overlay templates 2019-12-01 16:03:04 +01:00
CHANGELOG.md chore: release new versions 2020-01-13 13:00:46 +00:00
index.js feat: refactor the overlay system implementations, docs and demos 2019-11-29 17:32:31 +01:00
lion-dialog.js feat: refactor the overlay system implementations, docs and demos 2019-11-29 17:32:31 +01:00
package.json fix: update storybook and use main.js 2020-01-16 15:47:59 +01:00
README.md feat: improved storybook demos 2020-01-13 13:58:03 +01:00

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>