Socket
Book a DemoInstallSign in
Socket

@webzlodimir/vue-bottom-sheet

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webzlodimir/vue-bottom-sheet

![Example](https://anyprinter.ru/logo.jpg)

Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
5.5K
38.67%
Maintainers
1
Weekly downloads
 
Created
Source

Example

Vue Bottom Sheet

Size Downloads Version

A nice clean and touch-friendly bottom sheet component based on Vue.js and Hammer.js for Vue 2 & Vue 3

Installation

NPM

npm install @webzlodimir/vue-bottom-sheet

Yarn

yarn add @webzlodimir/vue-bottom-sheet

Usage

<template>
  <vue-bottom-sheet ref="myBottomSheet">
    <h1>Lorem Ipsum</h1>
    <h2>What is Lorem Ipsum?</h2>
    <p>
      <strong>Lorem Ipsum</strong> is simply dummy text
    </p>
  </vue-bottom-sheet>
</template>

<script setup>
import { VueBottomSheet } from "@webzlodimir/vue-bottom-sheet";
import  "@webzlodimir/vue-bottom-sheet/dist/style.css";
import { ref } from "vue";

const myBottomSheet = ref(null)

const open = () => {
  myBottomSheet.value.open();
}

const close = () => {
  myBottomSheet.value.close();
}
</script>

Props

PropTypeDescriptionExample
overlayBooleanRemove back overlay:overlay="false"
click-to-closeBooleanClick outside card to close:click-to-close="false"
max-widthStringSet max-width of component cardmax-width="640px"
max-heightStringSet max-height of component cardmax-height="90%"
effectStringSet effect for component cardeffect="fx-fadein-scale"
roundedBooleanRound the top two corners of the sheet:rounded="false"
is-full-screenBooleanEnable or disable full-screen mode:is-full-screen="true"
swipe-ableBooleanEnable or disable swipe to close:swipe-able="false"
overlay-colorStringSet overlay color with opacity:overlay-color="#0000004D"
background-scrollableBooleanEnable scroll:background-scrollable="true"
background-clickableBooleanEnable background click, doesn't work if click-to-close=true:background-clickable="true"

Events

EventDescriptionExample
openedFire when card component is opened@opened=""
closedFire when card component is closed@closed=""

List of effects

  • fx-default
  • fx-fadein-scale
  • fx-slide-from-right
  • fx-slide-from-left

You can see all the effects on the demo page

FAQs

Package last updated on 08 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts