/vue-bottom-sheet-1

Swipeable Material Bottom Sheet implementation that does not require any dependencies. Works only on touchscreens.

Primary LanguageVue

vue-bottom-sheet

GitHub open issues Npm version MIT License

Swipeable Material Bottom Sheet implementation that does not require any dependencies. Works only on touchscreens.

Installation

npm install vue-bottom-sheet

Usage

<VueBottomSheet>
  <!--> Your content here </-->
</VueBottomSheet>
import { VueBottomSheet } from 'vue-bottom-sheet'

export default {
  components: {
    VueBottomSheet
  }
}

Properties

Name Required Type Default Description
backgroundColor false String white Color of the sheet
image false Boolean false Adds an animated title image to the sheet
imageSrc false String - Specifies the cover image. Requires the attribute image
minSheetHeight false Number window.innerHeight * 0.15 Height of the sheet when closed
halfOpenSheetHeight false Number window.innerHeight * 0.5 Height of the sheet when open in the first stage
maxSheetHeight false Number window.innerHeight Height of the sheet when open in the second (last) stage
rounded false Boolean false Round the top two corners of the sheet
elevation false String 8 Sets the elevation of the sheet [0...24]