Package Exports
- @morpheme/tooltip
- @morpheme/tooltip/package.json
- @morpheme/tooltip/src/Changelog.stories.mdx
- @morpheme/tooltip/src/Readme.stories.mdx
- @morpheme/tooltip/src/VTooltip.stories.ts
- @morpheme/tooltip/src/VTooltip.vue
- @morpheme/tooltip/src/floating-vue.ts
- @morpheme/tooltip/src/index.ts
- @morpheme/tooltip/src/vue.d.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@morpheme/tooltip) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Morpheme Tooltip Component
Reusable Tooltip Component
Installation
npm
npm i @morpheme/tooltipyarn
yarn add @morpheme/tooltippnpm
pnpm i @morpheme/tooltipUsage
First, install the FloatingVuePlugin:
import {createApp} from 'vue'
import {FloatingVuePlugin} from '@morpheme/tooltip'
const app = createApp()
// use the plugin
app.use(FloatingVuePlugin)Then, use it like so:
<script setup lang="ts">
// import styles
import '@morpheme/themes/dist/morpheme/main.css';
// import component
import VTooltip from '@morpheme/tooltip';
</script>
<template>
<VTooltip>
<template #activator>
<button>Hover me</button>
</template>
</VTooltip>
<span>I am a tooltip</span>
</template>Documentation
View Tooltip documentation here.
License
MIT