Nonviolent Pirate Mobster

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

    1.0.1 • 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

    Install

    npm i @3yourmind/vue-use-tippy

    DownloadsWeekly Downloads

    71

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.49 kB

    Total Files

    8

    Last publish

    Collaborators

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