lion/packages/tooltip
CircleCI d1ae0daf4c chore: release new versions
- @lion/button@0.3.14
 - @lion/calendar@0.1.62
 - @lion/icon@0.2.6
 - @lion/input-datepicker@0.1.66
 - @lion/popup@0.2.42
 - @lion/select-rich@0.1.17
 - @lion/tooltip@0.2.42
2019-09-17 14:48:57 +00:00
..
src fix(tooltip): make tooltip hide with what triggered it 2019-09-09 14:17:28 +02:00
stories chore(popup/tooltip): improve DOM order in demo's 2019-09-09 14:17:36 +02:00
test fix(tooltip): make tooltip hide with what triggered it 2019-09-09 14:17:28 +02:00
CHANGELOG.md chore: release new versions 2019-09-17 14:48:57 +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 chore: release new versions 2019-09-17 14:48:57 +00:00
README.md chore: fix prepublish pattern format 2019-07-23 17:03:37 +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.google.com/">
    Popup on link
  </a>
</lion-tooltip>