1.0.0 • Published 7 months ago

vue-3-smooth-slide-down v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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>