lion/packages/popup
CircleCI 8223b4ad3d chore: release new versions
- @lion/button@0.3.30
 - @lion/calendar@0.2.8
 - @lion/checkbox-group@0.1.70
 - @lion/checkbox@0.1.63
 - @lion/choice-input@0.2.40
 - @lion/field@0.3.4
 - @lion/fieldset@0.1.62
 - @lion/form-system@0.0.76
 - @lion/form@0.1.69
 - @lion/input-amount@0.1.65
 - @lion/input-date@0.1.63
 - @lion/input-datepicker@0.2.8
 - @lion/input-email@0.1.63
 - @lion/input-iban@0.1.65
 - @lion/input@0.1.62
 - @lion/localize@0.4.21
 - @lion/option@0.2.5
 - @lion/popup@0.3.7
 - @lion/radio-group@0.1.71
 - @lion/radio@0.1.63
 - @lion/select-rich@0.3.10
 - @lion/select@0.1.60
 - @lion/textarea@0.1.65
 - @lion/tooltip@0.3.7
 - @lion/validate@0.2.38
2019-10-23 14:02:18 +00:00
..
src feat: update to latest overlay system 2019-10-10 17:14:49 +02:00
stories chore(popup/tooltip): improve DOM order in demo's 2019-09-09 14:17:36 +02:00
test feat: update to latest overlay system 2019-10-10 17:14:49 +02:00
CHANGELOG.md chore: release new versions 2019-10-23 14:02:18 +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-10-23 14:02:18 +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>