vue-swipeable-bottom-sheet

5,450 45
Install
npm install vue-swipeable-bottom-sheet
Latest Version:0.0.5
Vue:2
License:MIT
Last Updated:Nov 25, 2020
Links: GitHub  ·  npm
Maintainer: atsutopia

Vue Swipeable Bottom Sheet

NPM license

A swipeable material's bottom sheet implementation, that uses hammerjs.

vue-swipeable-bottom-sheet.gif

Installation

NPM
npm install --save vue-swipeable-bottom-sheet

or

Yarn
yarn add vue-swipeable-bottom-sheet

Usage

<template>
  <swipeable-bottom-sheet ref="swipeableBottomSheet">
    <h1>Lorem Ipsum</h1>
    <h2>What is Lorem Ipsum?</h2>
    <p>
      <strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    </p>
  </swipeable-bottom-sheet>
</template>

<script>
import { SwipeableBottomSheet } from "vue-swipeable-bottom-sheet";

export default {
  components: {
    SwipeableBottomSheet
  },
}
</script>
mount with ssr
<template>
  <no-ssr>
    <swipeable-bottom-sheet ref="swipeableBottomSheet">
      <h1>Lorem Ipsum</h1>
      <h2>What is Lorem Ipsum?</h2>
      <p>
        <strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
      </p>
    </swipeable-bottom-sheet>
  </no-ssr>
</template>

if (process.browser) {
  const SwipeableBottomSheet = require('vue-swipeable-bottom-sheet')
  Vue.component("swipeable-bottom-sheet", SwipeableBottomSheet)
}

License

MIT

Related Packages

vue-swing

Vue.js wrapper for Swing

6,815 203
vue-swipeable

Vue-swipeable is a Vue directive that serves multiple purposes on mobile devices...

2,346 8
vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398

Version History

Version Released Vue License
0.0.5 2.5.16 MIT
0.0.4 2.5.16 MIT
0.0.3 2.5.16 MIT
0.0.2 2.5.16 MIT
0.0.1 2.5.16 MIT