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 🙏

© 2026 – Pkg Stats / Ryan Hefner

v-component-tooltips

v1.0.7

Published

a simple vue tooltips component

Downloads

13

Readme

v-component-tooltips

A vue tooltips component

Getting Started

1.Install with NPM

npm i v-component-tooltips

2.Import into your vue component

import Tooltips from 'v-component-tooltips'

3.Wrap any element with the Tooltips component

Example: Different usage of content

<Tooltips content="Inline Content" >
    <div class="wrap-any-element-you-want">
        Main Area
    </div>
</Tooltips>
<Tooltips>
    <div slot="content">Slot Content</div>
        Main Area With No Wrapper
</Tooltips>

Properties

| Name | Type | Description | Default | Value | | :----: | :----: | :---- | :----: | :----: | | placement | String | The position of the Tooltips tag show, it could be 12 different directions | bottom | 'bottom', 'top', 'right', 'left', 'top-right', 'top-left', 'right-top', 'right-bottom', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom' | | no-arrow | Boolean | Control the triangle of the tooltips tag show or not | true | true, false | | content | slot/string | You can transfer the content like an property "content", or you can use the slot with name="content" to adding things to the tag | - | - | | offset | Array | It only accept an array with 2 elements, offset[1] control the offset to origin top of tag box, offset[2] control the offset to origin left of tag box | [0, 0] | - | | show-delay | Number | The seconds before showing the tag | 0 | - | | hide-delay | Number | The seconds before hiding the tag | 0 | - | | disabled | Boolean | For controlling the tag show or not | false |true, false | | text-color | String | The color of main text after hovering | #66009D | rgba, rgb, binary color | | box-color | String | The color of main box border after hovering | #7700BB | rgba, rgb, binary color | | duration | Number | The duration of completing the transition function | 0.2 | - | | transition-function | String | The time function of transition | ease-in | - |

Events

| Name | Type | Description | Default | Value | | :----: | :----: | :---- | :----: | :----: | | onPopperOpen | Function | Triggered when the mouse is hover into the main area | - | - | | onPopperClose | Function | Triggered when the mouse leave the main area | - | - |

How to use(simple-examples)

offset

<Tooltips placement="left" content="Left Offset Content" :offset="[-122,-111]">
      <div class="tooltips-content">
        offset in left tag
      </div>
</Tooltips>

disabled

<Tooltips placement="top" content="有Disabled的content" disabled>
    <div class="tooltips-content">
        content with disabled
    </div>
</Tooltips>

duration && transition-function

<Tooltips placement="left" content="abc" :duration="0.2" transition-function="ease-in">
    <div class="tooltips-content">
          transition function
      </div>
</Tooltips>

show-delay && hide-delay

<Tooltips placement="top" content="abc" :show-delay="1" :hide-delay="2">
    <div class="tooltips-content">
        With both show delay and hide delay
    </div>
</Tooltips>

no-arrow

<Tooltips placement="top" content="abc" no-arrow>
    <div class="tooltips-content">
        没有箭头
    </div>
</Tooltips>