• Stars
    star
    664
  • Rank 67,903 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

VueJS Tooltip powered by Tippy.js

VueTippy - V6

npm vue2 download

Vue.js 3 wrapper for Tippy.js

For Tippy.js v4 use v4 branch

Documentation

For full v6 documentation, visit https://vue-tippy.netlify.app/.

Installation

npm install vue-tippy@v6

//or

yarn add vue-tippy@v6

Configuration (optional)

import { createApp } from 'vue'

import VueTippy from 'vue-tippy'
// or
import { plugin as VueTippy } from 'vue-tippy'

const app = createApp({})

app.use(
  VueTippy,
  // optional
  {
    directive: 'tippy', // => v-tippy
    component: 'tippy', // => <tippy/>
  }
)

app.mount('#app')

Usage

Vue Directive

<template>
  <button v-tippy="{ content: 'Hi!' }">Tippy!</button>
  <button v-tippy="'Hello!'">Tippy!</button>
</template>

<!-- 
  The below is optional in case you 
  installed the plugin globally
 -->
<script>
  import { directive } from 'vue-tippy'

  export default {
    directives: {
      tippy: directive,
    },
  }
</script>

Vue Component

<template>
  <tippy content="Hi!">
    <button>Tippy!</button>
  </tippy>
</template>

<!-- 
  The below is optional in case you 
  installed the plugin globally
 -->
<script>
  import { Tippy } from 'vue-tippy'

  export default {
    components: [Tippy],
  }
</script>

Using composition api

import { defineComponent, ref, h } from 'vue'
import { useTippy } from 'vue-tippy'

export default defineComponent({
  setup() {
    const button = ref()

    useTippy(button, {
      content: 'Hi!',
    })

    return () => h('button', { ref: button }, 'Tippy!')
  },
})

More Repositories

1

nova-impersonate

A Laravel Nova field allows you to authenticate as your users.
PHP
230
star
2

nova-logs-tool

A Laravel Nova tool to manage and keep track of each one of your logs files.
Vue
71
star
3

laravel-mix-merge-manifest

This extension support multi mix configration without overwriting the mix-manifest.json file
JavaScript
60
star
4

laravel-ward

Manage Your Laravel Log From A Web Dashboard
JavaScript
24
star
5

laravel-mix-vue3

A Laravel Mix extension for Vue 3, Typescript and JSX.
JavaScript
23
star
6

laravel-logger-discord-channel

A Discord based Monolog driver for Laravel
PHP
13
star
7

adonisjs-scheduler

Task scheduler for AdonisJS
TypeScript
13
star
8

vue-slugify

Slug directive plugin for Vue.js
JavaScript
9
star
9

laravel-bread

Build a custom admin interface for your Eloquent models
PHP
8
star
10

laravel-table-view

Laravel 5 Package for easily displaying table views for Eloquent Collections
PHP
7
star
11

flutter_laravel_forge

A Laravel Forge mobile app.
Dart
6
star
12

laravel-vercel

Laravel Vercel - Adapter/Bridge
PHP
5
star
13

laravel-mix-vue-auto-routing

A quick Laravel Mix extension to generate "Vue Router" routing automatically.
JavaScript
5
star
14

nuxt-vue-web3

Vue
4
star
15

flutter_fast_route

fast_route is a custom Flutter routing library inspired by vue-router.
Dart
3
star
16

nuxt3-vue-web3

Vue
2
star
17

simple-mvc

A Simple PHP Framework
PHP
2
star
18

konsole

Konsole is command line interface for Unity.
C#
2
star
19

laravel-settings

Advanced Settings Manager for Laravel
PHP
2
star
20

laravel-mix-register-aliases

A quick Laravel Mix extension to register aliases (~,@).
JavaScript
2
star
21

provisioner

PHP
1
star
22

vue-inline-data

JavaScript
1
star
23

nuxt-nitro-helpers

TypeScript
1
star
24

awesome-vue-renderer

Awesome list of Vue Renderer
1
star
25

AgarDarkRift-MasterServer

C#
1
star
26

etherscan-token-holders

TypeScript
1
star
27

docus-starter

Starter for Docus.dev
JavaScript
1
star
28

BigNumber.php

A PHP package for arbitrary-precision decimal and non-decimal arithmetic inspired by bignumber.js
PHP
1
star
29

nova-impersonate-test

PHP
1
star
30

date-countdown-component

https://kabbouchi.github.io/date-countdown-component
Vue
1
star