@3yourmind/vue-use-tippy
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@3yourmind/vue-use-tippy

Vue hook for tippy.js

Usage

import { useTippy } from '@3yourmind/vue-use-tippy'
import { computed, defineComponent, ref } from '@vue/composition-api'

export default defineComponent({
	setup() {
		const contentRef = ref(null)

		useTippy(
			helpTextTriggerRef,
			computed(() => ({
				appendTo: () => document.body,
				content: contentRef,
				interactive: true,
				theme: 'light-border',
			})),
		)

		return {
			contentRef,
		}
	},
})

Right now, @vue/composition-api@0.6.1 is recommended.

Options

See https://atomiks.github.io/tippyjs/v6/all-props/ for supported options

/@3yourmind/vue-use-tippy/

    Package Sidebar

    Install

    npm i @3yourmind/vue-use-tippy

    Weekly Downloads

    12

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    9.59 kB

    Total Files

    8

    Last publish

    Collaborators

    • moritzvetter
    • felix_bauer
    • dennis_hezel
    • 3yd_developer
    • florianwendelborn
    • florentgallois
    • santiagoballadares