Slide-up-down

This component is intended for the animated appearance/disappearance of the component content. Below you will see a visual presentation of such component.

slide-up-down

Components

Example of use

<button class="btn" @click="$refs.slide.toggle()">Toggle</button>

<slide-up-down ref="slide">
    <p>Text inside slide-up-down</p>
    <p>One more paragraph</p>
</slide-up-down>

Text inside slide-up-down

One more paragraph

Input parameters

Name Type Default Description
show Boolean false Show/hide content
tag String 'div' Tag for the template wrapper
slide-up-duration Number 250 Closing time in milliseconds
slide-down-duration Number 300 Opening time in milliseconds

Component methods

All methods are called without parameters.

Name Description
open Show content
close Hide content
toggle Switch current state
© 2019 - Proudly powered on Awes.IO Platform