lion/packages/popup
CircleCI 654db19cc7 chore: release new versions
- @lion/button@0.3.38
 - @lion/calendar@0.3.3
 - @lion/input-datepicker@0.4.1
 - @lion/popup@0.3.15
 - @lion/select-rich@0.5.1
 - @lion/switch@0.3.1
 - @lion/tooltip@0.3.15
2019-11-19 08:58:31 +00:00
..
src fix: refactor slot selection 2019-11-15 15:50:18 +01:00
stories chore(popup/tooltip): improve DOM order in demo's 2019-09-09 14:17:36 +02:00
test fix: refactor slot selection 2019-11-15 15:50:18 +01:00
CHANGELOG.md chore: release new versions 2019-11-19 08:58:31 +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-11-19 08:58:31 +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>