@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    22
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    22
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @3yourmind/vue-use-tippy

Weekly Downloads

22

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