lion/packages/tooltip
Thijs Louisse 4c26befaae feat: update to latest overlay system
Co-authored-by: Thomas Allmer <Thomas.Allmer@ing.com>
Co-authored-by: Joren Broekema <Joren.Broekema@ing.com>
Co-authored-by: Mikhail Bashkirov <Mikhail.Bashkirov@ing.com>
Co-authored-by: Alex Ghiu <Alex.Ghiu@ing.com>
2019-10-10 17:14:49 +02:00
..
src feat: update to latest overlay system 2019-10-10 17:14:49 +02:00
stories feat: update to latest overlay system 2019-10-10 17:14:49 +02:00
test feat: update to latest overlay system 2019-10-10 17:14:49 +02:00
CHANGELOG.md chore: release new versions 2019-09-30 12:55:05 +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-30 12:55:05 +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>