0.0.2 • Published 1 year ago

auto-height-hover v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Auto-Height-Hover

Usage

# pnpm
pnpm install auto-height-hover
# npm
npm i auto-height-hover
# yarn
yarn add auto-height-hover

Vue

// 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

  1. type = 'hover' | 'click' // trigger methods
  2. h = number // height transition time
  3. opa = number // opacity transition time
0.0.2

1 year ago

0.0.1

1 year ago