lion/packages/popup
CircleCI 41e12da90d chore: release new versions
- @lion/button@0.3.10
 - @lion/calendar@0.1.58
 - @lion/checkbox-group@0.1.55
 - @lion/form-system@0.0.58
 - @lion/form@0.1.54
 - @lion/input-date@0.1.49
 - @lion/input-datepicker@0.1.62
 - @lion/input-iban@0.1.50
 - @lion/popup@0.2.37
 - @lion/radio-group@0.1.55
 - @lion/select-rich@0.1.13
 - @lion/tooltip@0.2.37
2019-08-21 12:00:46 +00:00
..
src chore(overlays): change to API popperConfig to make clear it's Popper.js 2019-06-27 16:08:07 +02:00
stories chore(overlays): fix demo by adding boundariesElement to popup config 2019-06-28 10:45:17 +02:00
test chore(popup): fix flaky test 2019-07-26 16:43:07 +02:00
CHANGELOG.md chore: release new versions 2019-08-21 12:00:46 +00:00
index.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
lion-popup.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
package.json chore: release new versions 2019-08-21 12:00:46 +00:00
README.md chore: fix prepublish pattern format 2019-07-23 17:03:37 +02:00

Popup

lion-popup is a component used for basic popups on click. Its purpose is to show content appearing when the user clicks an invoker element with the cursor or with the keyboard.

Features

  • Show content when clicking the invoker
  • Use the position property to position the content popup relative to the invoker

How to use

Installation

npm i --save @lion/popup
import '@lion/popup/lion-popup.js';

Example

<lion-popup>
  <div slot="content" class="tooltip">This is a popup<div>
  <a slot="invoker" href="https://www.google.com/">
    Popup on link
  </a>
</lion-popup>