All Projects → egoist → v-tippy

egoist / v-tippy

Licence: MIT License
Vue.js binding for Tippy.js

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to v-tippy

Vue Directive Tooltip
Vue.js tooltip directive. Easy to use, configure and style
Stars: ✭ 158 (+192.59%)
Mutual labels:  tooltip, directive
Tooltips
(unmaintained) A small tooltips library for Android based on Material Design.
Stars: ✭ 14 (-74.07%)
Mutual labels:  tooltip
SwiftUI-Tooltip
Easy Tooltip for your SwiftUI Project
Stars: ✭ 130 (+140.74%)
Mutual labels:  tooltip
postel
tiny react library for building tooltips, flyovers, menus and more
Stars: ✭ 70 (+29.63%)
Mutual labels:  tooltip
hexo-tag-hint
A Hexo tag plugin to display text hint/spoiler tooltip.
Stars: ✭ 26 (-51.85%)
Mutual labels:  tooltip
Bootstrap-Confirmation
Bootstrap plugin for on-place confirm boxes using Popover
Stars: ✭ 303 (+461.11%)
Mutual labels:  tooltip
vue-visible
v-visible directive for VueJS
Stars: ✭ 31 (-42.59%)
Mutual labels:  directive
angular-mapboxgl-directive
AngularJS directive for Mapbox GL
Stars: ✭ 43 (-20.37%)
Mutual labels:  directive
ngx-ionic-image-viewer
An Ionic 4 Angular component to view & zoom on images and photos without any additional dependencies.
Stars: ✭ 129 (+138.89%)
Mutual labels:  directive
angular2-stretchy
angular2-stretchy is an Angular2 directive that automatically adjusts input width to fit content.
Stars: ✭ 12 (-77.78%)
Mutual labels:  directive
react-ellipsis-text
React text ellipsify component
Stars: ✭ 28 (-48.15%)
Mutual labels:  tooltip
Codist
A visual studio extension which enhances syntax highlighting, quick info (tooltip), navigation bar, scrollbar, display quality and brings smart tool bar to code editor.
Stars: ✭ 134 (+148.15%)
Mutual labels:  tooltip
react-hotkey-tooltip
A global Hotkey provider with built in tooltip for React
Stars: ✭ 34 (-37.04%)
Mutual labels:  tooltip
ngx-scroll-to-first-invalid
Directive to scroll to first invalid form control inside an Angular form on submit
Stars: ✭ 27 (-50%)
Mutual labels:  directive
angular2-focus
Angular attribute directive that gives focus on an element depending on a given expression 🔎
Stars: ✭ 21 (-61.11%)
Mutual labels:  directive
SpikeTip
Create effortless tooltips that breathe CSS! No Javascript. Just the good old CSS.
Stars: ✭ 26 (-51.85%)
Mutual labels:  tooltip
angular-file-dropzone
A simple file dropzone for Angular
Stars: ✭ 13 (-75.93%)
Mutual labels:  directive
react-popover
Customizable positioning for tooltips, menus, and any other DOM elements inside of a container
Stars: ✭ 13 (-75.93%)
Mutual labels:  tooltip
jsPanel3
A jQuery Plugin to create highly configurable floating panels, modals, tooltips, hints/notifiers or contextmenus for use in a backend solution and other web applications.
Stars: ✭ 89 (+64.81%)
Mutual labels:  tooltip
ionic2-mask-directive
directive to mask ion-input
Stars: ✭ 24 (-55.56%)
Mutual labels:  directive

v-tippy

NPM version NPM downloads CircleCI donate

Vue.js binding for Tippy.js which is a powerful and elegant tooltip library.

Install

yarn add v-tippy

Usage

First, use the plugin to register v-tippy directive:

import Tippy from 'v-tippy'
// Don't forget to include CSS somewhere!
// Basically it's a copy of `tippy.js/dist/tippy.css`
import 'v-tippy/dist/tippy.css'

Vue.use(Tippy)

Then, use it:

<button title="will appear on the top" v-tippy>hover me</button>

Supply Tippy.js options

You can pass all Tippy.js options as v-tippy directive's arguments:

<button 
  title="I'm on the left!" 
  v-tippy="{position: 'left'}">
  hover me
</button>

Default settings

You can tweak default settings globally while installing the plugin:

Vue.use(Tippy, {
  position: 'left',
  onShown: () => console.log('lol'),
  // ... other options you wanna change globally
})

Gotchas

Can I supply Tippy.js options via data-* attributes?

Sure you can, but it's will only be used for once, when the binding value changes (eg: :data-position="position"), the poper generated by Tippy.js will not be updated. Supplying options via directive arguments is better.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

v-tippy © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).

egoist.moe · GitHub @egoist · Twitter @_egoistlily

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].