lion/packages/tooltip
2019-06-28 10:45:17 +02:00
..
src chore(overlays): change to API popperConfig to make clear it's Popper.js 2019-06-27 16:08:07 +02:00
stories chore(overlays): fix demo by adding boundariesElement to popup config 2019-06-28 10:45:17 +02:00
test chore(overlays): cleanup some tests and demos 2019-06-27 15:42:09 +02:00
CHANGELOG.md chore: release new versions 2019-06-27 09:08:50 +00:00
index.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
lion-tooltip.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
package.json feat(tooltip): change API to popper based 2019-06-27 14:10:45 +02:00
README.md feat: release inital public lion version 2019-04-26 10:37:57 +02:00

Tooltip

lion-tooltip is a component used for basic popups on hover. Its purpose is to show content appearing when the user hovers over an invoker element with the cursor or with the keyboard, or if th e invoker element is focused.

Features

  • Show content when hovering the invoker
  • Show content when the invoker is focused
  • Use the position property to position the content popup relative to the invoker

How to use

Installation

npm i --save @lion/popup
import '@lion/tooltip/lion-tooltip.js';

Example

<lion-tooltip>
  <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-tooltip>