npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-light-tooltip

v0.0.5

Published

A lightweight tooltip for Vue.js

Downloads

9

Readme

vue-light-tooltip

A simple and lightweight tooltip for Vue JS.

Install vue-light-tooltip

npm install --save vue-light-tooltip

Using vue-light-tooltip

  • type = type of parent element on which the tooltip appears when hovered upon example - span, button etc.
  • parent = text in parent element. (HTML is also supported)
  • tooltipText = text in tooltip.
  • :styles = apply style to parent element (supply style as object).
<template>
  <div class="hello">
    <h1>Hello World!</h1>
    <tooltip parent="Hover here" type="span" tooltipText="Tooltip appears!" :styles="{color:'red', 'font-size':'24px'}>
    </tooltip>
  </div>
</template>

<script>
import tooltip from 'vue-light-tooltip';

export default {
  name: 'HelloWorld',
  components: {
     tooltip,
  },
};
</script>
<style>
 // styles come here
</style>

Dynamically disable tooltip

Use disabled flag to dynamically disable tooltip in runtime. By default the value is set "false".

<tooltip parent="Hover here" type="span" tooltipText="Tooltip appears!" v-bind:disabled="true">
</tooltip>

Position of tooltip

Use position flag to set position of tooltip. By default the value is "up".

<tooltip parent="Hover here" type="span" tooltipText="Tooltip appears!" position="down">
</tooltip>

Adjust length of tooltip

Use length flag to set length of tooltip. By default the value is "small".

<tooltip parent="Hover here" type="span" tooltipText="Tooltip appears!" length="large">
</tooltip>

Using Glyphs and Icon fonts in Tooltip

You can use Html special characters, emojis or third party fonts like "Font awesome".

<tooltip parent="Hover here" type="span" tooltipText="Tooltip has HTML special characters: &#9787; &#9986; &#9820;">
</tooltip>
<tooltip parent="Hover here" type="span" tooltipText="Tooltip has Emojis: 😀 😬 😁 😂 😃 😄 😅 😆">
</tooltip>
<tooltip parent="Hover here" type="span" tooltipText="Tooltip Font Awesome Icons: &#xf030; &#xf133; &#xf1fc; &#xf03e;">
</tooltip>

Inputs for vue-light-tooltip

  • parent - HTML, text.
  • tooltip - text, glyph, emoji, icon.
  • position - up, down, right, left, up-right, up-left, down-right, down-left.
  • disabled - boolean (true, false).
  • length - small, medium, large, xlarge, fit.
  • style - object.

Contribution guidelines

  1. Clone the project.
  2. Make a pull request.

Credits

Made by Sree Krishna Raja Github@sreekrishnaraja Twitter@sreekrishnaraja

CSS is taken from source code of Balloon CSS by kazzkiq which is published under MIT license.

This library (vue-light-tooltip) is Published under MIT license.