0.1.3 • Published 3 years ago

swipable-modal v0.1.3

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

swipable-modal

v0.0.3 Vue plugin to create a simple modal with swipable behavior on mobile devices.

Installation

npm i vue-swipable-modal

or

yarn add vue-swipable-modal

Then you can install your plugin globally with

...
import SwipableModal from 'vue-swipable-modal'

Vue.use(SwipableModal)
...

Usage

You can use the plugin as a simple component in Vue.

<swipable-modal>
  <div>
    <div class="title">
      Awesome modal!
    </div>
    <div class="content">
      Yeah, this is my awesome content.
    </div>
  </div>
</swipable-modal>

Options

ParameterRequiredTypeDefaultDescription
positionString'top'Position of the swipable modal. Set to "top" or "bottom"

Coming soon

X axis suppor and some other customizations