lion/packages/dialog
CircleCI 0ff4199f1f chore: release new versions
- @lion/dialog@0.4.18
 - @lion/form-system@0.7.12
 - @lion/input-datepicker@0.11.7
 - @lion/overlays@0.13.3
 - @lion/select-rich@0.15.4
 - @lion/tooltip@0.8.13
2020-05-06 15:22:51 +00:00
..
src fix(dialog): teardown open close listeners after initial update complete 2020-05-06 16:11:00 +02:00
stories docs(overlay): adding link to Overlay System - Configuration 2020-03-19 10:41:46 +01:00
test fix(dialog): teardown open close listeners after initial update complete 2020-05-06 16:11:00 +02:00
CHANGELOG.md chore: release new versions 2020-05-06 15:22:51 +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 chore: release new versions 2020-05-06 15:22:51 +00: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>