# pnpm
pnpm install auto-height-hover
# npm
npm i auto-height-hover
# yarn
yarn add auto-height-hover
// Two ways to import
import AutoHeightHoverPlugin, { AutoHeightHover } from 'auto-height-hover'
<template>
<AutoHeightHover>
<button>hover me!</button>
<template #panel>
largest text ...
</template>
</AutoHeightHover>
</template>
// or
const app = createAp()
app.use(AutoHeightHoverPlugin)
- type = 'hover' | 'click' // trigger methods
- h = number // height transition time
- opa = number // opacity transition time