vue-3-smooth-slide-down
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Vue 3 Smooth Slide Down

Simple component for smooth slide down effect.

Installation

npm i vue-3-smooth-slide-down

Usage

<script setup>
import { Vue3SmoothSlideDown } from 'vue-3-smooth-slide-down'
import { ref } from 'vue'

const show = ref(false)

function showElement() {
  show.value = !show.value
}
</script>

<template>
  <main>
    <button @click="showElement">Click me</button>
    <Vue3SmoothSlideDown v-model="show">
        <!-- Your content here -->
    </Vue3SmoothSlideDown>
  </main>
</template>

Package Sidebar

Install

npm i vue-3-smooth-slide-down

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

10.1 kB

Total Files

10

Last publish

Collaborators

  • mivamo