0.0.2 • Published 1 year ago
auto-height-hover v0.0.2
Auto-Height-Hover
Usage
# pnpm
pnpm install auto-height-hover
# npm
npm i auto-height-hover
# yarn
yarn add auto-height-hoverVue
// 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)props
- type = 'hover' | 'click' // trigger methods
 - h = number // height transition time
 - opa = number // opacity transition time