lion/packages/dialog
CircleCI 19c6961c2b chore: release new versions
- @lion/dialog@0.4.5
 - @lion/form-system@0.4.4
 - @lion/input-datepicker@0.8.15
 - @lion/overlays@0.12.1
 - @lion/select-rich@0.10.2
 - @lion/tooltip@0.8.1
2020-02-13 16:08:28 +00: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-02-13 16:08:28 +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-02-13 16:08:28 +00: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>