lion/packages/dialog
CircleCI 1b9fb3ef7b chore: release new versions
- @lion/ajax@0.2.1
 - @lion/button@0.5.1
 - @lion/calendar@0.6.1
 - @lion/checkbox-group@0.5.1
 - @lion/checkbox@0.3.1
 - @lion/choice-input@0.5.1
 - @lion/core@0.4.1
 - @lion/dialog@0.4.1
 - @lion/field@0.8.1
 - @lion/fieldset@0.6.1
 - @lion/form-system@0.3.1
 - @lion/form@0.4.1
 - @lion/helpers@0.2.1
 - @lion/icon@0.3.1
 - @lion/input-amount@0.5.1
 - @lion/input-date@0.5.1
 - @lion/input-datepicker@0.8.1
 - @lion/input-email@0.5.1
 - @lion/input-iban@0.5.1
 - @lion/input-range@0.2.1
 - @lion/input@0.5.1
 - @lion/localize@0.8.1
 - @lion/option@0.4.1
 - @lion/overlays@0.11.1
 - @lion/radio-group@0.5.1
 - @lion/radio@0.3.1
 - @lion/select-rich@0.9.1
 - @lion/select@0.5.1
 - @lion/steps@0.3.1
 - @lion/switch@0.5.1
 - @lion/tabs@0.2.1
 - @lion/textarea@0.5.1
 - @lion/tooltip@0.7.1
 - @lion/validate@0.6.1
2020-01-17 09:15:57 +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-01-17 09:15:57 +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-01-17 09:15:57 +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>