- @lion/button@0.3.41 - @lion/calendar@0.3.6 - @lion/checkbox-group@0.3.3 - @lion/checkbox@0.2.5 - @lion/choice-input@0.4.3 - @lion/field@0.6.2 - @lion/fieldset@0.4.2 - @lion/form-system@0.2.3 - @lion/form@0.3.3 - @lion/input-amount@0.3.3 - @lion/input-date@0.3.3 - @lion/input-datepicker@0.4.4 - @lion/input-email@0.3.3 - @lion/input-iban@0.3.3 - @lion/input@0.3.3 - @lion/localize@0.6.0 - @lion/option@0.3.3 - @lion/popup@0.3.18 - @lion/radio-group@0.3.3 - @lion/radio@0.2.5 - @lion/select-rich@0.6.3 - @lion/select@0.3.3 - @lion/switch@0.3.4 - @lion/textarea@0.3.3 - @lion/tooltip@0.3.18 - @lion/validate@0.4.1 |
||
|---|---|---|
| .. | ||
| src | ||
| stories | ||
| test | ||
| CHANGELOG.md | ||
| index.js | ||
| lion-popup.js | ||
| package.json | ||
| README.md | ||
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>