lion/packages/popup/README.md
Thomas Allmer ec8da8f12c feat: release inital public lion version
Co-authored-by: Mikhail Bashkirov <mikhail.bashkirov@ing.com>
Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>
Co-authored-by: Joren Broekema <joren.broekema@ing.com>
Co-authored-by: Gerjan van Geest <gerjan.van.geest@ing.com>
Co-authored-by: Erik Kroes <erik.kroes@ing.com>
Co-authored-by: Lars den Bakker <lars.den.bakker@ing.com>
2019-04-26 10:37:57 +02:00

34 lines
721 B
Markdown

# Popup
[//]: # (AUTO INSERT HEADER PREPUBLISH)
`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
```sh
npm i --save @lion/popup
```
```js
import '@lion/popup/lion-popup.js';
```
### Example
```html
<lion-popup>
<div slot="content" class="tooltip">This is a popup<div>
<a slot="invoker" href="https://www.ing.com/Newsroom/All-news/Uslion-AI-to-assess-credit-risk.htm">
Popup on link
</a>
</lion-popup>
```