프로젝트
GitHub에서 보기
KABBOUCHI/vue-tippy
소개
Tippy.js를 기반으로 하는 VueJS 툴팁입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalVueTippy - V6
Vue.js 3 wrapper for Tippy.js
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>
<script setup>
import { directive as VTippy } from 'vue-tippy'
</script>
Vue Component
<template>
<Tippy content="Hi!">
<button>Tippy!</button>
</Tippy>
</template>
<script setup>
import { Tippy } from 'vue-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!')
},
})
관련 프로젝트 살펴보기
불러오는 중…