Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-tippy

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-tippy

> Directive wrapper for Tippy.js

  • 0.3.1
  • npm
  • Socket score

Version published
Weekly downloads
79K
decreased by-12.42%
Maintainers
1
Weekly downloads
 
Created
Source

vue-tippy

Directive wrapper for Tippy.js

Install

CDN

unpkg.com

Available through npm as vue-tippy.
var vueTippy = require('vue-tippy')
Vue.use(vueTippy)

Usage

Using the v-tippy directive
Basic
<button title="Hi!" v-tippy> My Button! </button>
Bind title
<button :title="dynamicTitle" v-tippy> My Button! </button>
Bind settings
<button title="Hello" v-tippy="{ position : 'top',  arrow: true }"> My Button! </button>
HTML Template 1 (without reactivity)
<button data-html="#contentpopup1" v-tippy> My Button! </button>
<div id="contentpopup1" style="display: none">
        <div>
            <h3> Header</h3>
            <p style="color: black"> {{ message }} - data binding </p>
        </div>
 </div>
HTML Template 2 (with reactivity)
<button v-tippy="{ html : '#contentpopup2'}"> My Button! </button>
<div id="contentpopup2">
        <div>
            <h3> Header</h3>
            <p style="color: black"> {{ message }} - data binding </p>
            <button @click="clicked">Click<button>
        </div>
 </div>
Vue component
<button  v-tippy="{ html : '#comppopup' }"> My Button! </button>
<vue-component-test id="comppopup"></vue-component-test>
Bugs
  • Constant updating HTML or VueComponent will cause small delay for tooltip to pickup the new content, if your tooltip depend on it, you can use this.$tippy.forceUpdateHtml() to update it instantly. fixed in v0.2.9

License

MIT

Keywords

FAQs

Package last updated on 29 Oct 2017

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