0.0.5 • Published 5 years ago

vue-swipeable-bottom-sheet v0.0.5

Weekly downloads
173
License
MIT
Repository
github
Last release
5 years ago

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

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago