lion/packages/dialog
CircleCI 77abd7c8b0 chore: release new versions
- @lion/dialog@0.4.9
2020-03-11 15:50:47 +00:00
..
src
stories
test
CHANGELOG.md chore: release new versions 2020-03-11 15:50:47 +00:00
index.js
lion-dialog.js
package.json chore: release new versions 2020-03-11 15:50:47 +00:00
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>