lion/packages/dialog
2020-05-25 16:42:01 +02:00
..
src fix(overlays): local backdrop outlet 2020-05-18 12:53:13 +02:00
stories docs(overlay): adding link to Overlay System - Configuration 2020-03-19 10:41:46 +01:00
test fix(overlays): setup/teardown fixes + perf improvements OverlayMixin 2020-05-17 17:30:33 +02:00
CHANGELOG.md chore: release new versions 2020-05-20 10:49:00 +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: add side effects to package.json to fix storybook build 2020-05-25 16:42:01 +02:00
README.md chore: remove pilot phase header 2020-04-29 10:05:06 +02: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>