New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lion/tooltip

Package Overview
Dependencies
Maintainers
2
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/tooltip

Show relative overlay content on hover

  • 0.24.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
195
decreased by-82.06%
Maintainers
2
Weekly downloads
 
Created
Source

Tooltip >> Overview ||10

A web 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 the invoker element is focused.

import { html } from '@mdjs/mdjs-preview';
import '@lion/tooltip/define';
export const main = () => html`
  <style>
    .demo-tooltip-invoker {
      margin: 50px;
    }
  </style>
  <lion-tooltip has-arrow>
    <button slot="invoker" class="demo-tooltip-invoker">Hover me</button>
    <div slot="content">This is a tooltip</div>
  </lion-tooltip>
`;

Features

  • Show content when hovering the invoker
  • Show content when the invoker is focused
  • Does not show content when invoker is disabled
  • Uses Popper.js under the hood, to have the content pop up relative to the invoker
  • Use .config to override the overlay configuration
  • Config has popperConfig property that has a one to one relation with Popper.js configuration API.

Installation

npm i --save @lion/tooltip
import { LionTooltip } from '@lion/tooltip';
// or
import '@lion/tooltip/define';

Keywords

FAQs

Package last updated on 08 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc