- @lion/button@0.3.8 - @lion/calendar@0.1.56 - @lion/checkbox-group@0.1.53 - @lion/checkbox@0.1.48 - @lion/choice-input@0.2.25 - @lion/field@0.2.0 - @lion/fieldset@0.1.47 - @lion/form-system@0.0.56 - @lion/form@0.1.52 - @lion/input-amount@0.1.49 - @lion/input-date@0.1.47 - @lion/input-datepicker@0.1.60 - @lion/input-email@0.1.47 - @lion/input-iban@0.1.48 - @lion/input@0.1.47 - @lion/option@0.1.7 - @lion/popup@0.2.35 - @lion/radio-group@0.1.53 - @lion/radio@0.1.48 - @lion/select-rich@0.1.11 - @lion/select@0.1.45 - @lion/textarea@0.1.50 - @lion/tooltip@0.2.35 |
||
|---|---|---|
| .. | ||
| 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>