Socket
Socket
Sign inDemoInstall

nekoo_vue_swipemodal

Package Overview
Dependencies
13
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nekoo_vue_swipemodal

- #### The latest version is **2**. Note that the component names and available props are still different. - #### New package name: @takuma-ru/vue-swipe-modal The name of this package has been changed! Install the package at the following link.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

nekoo_vue_swipemodal v2.x

WARNING!

  • The latest version is 2.
    Note that the component names and available props are still different.
  • New package name: @takuma-ru/vue-swipe-modal
    The name of this package has been changed! Install the package at the following link. @takuma-ru/vue-swipe-modal(New package link)
  • End of Support.
    Version 2.0.5 and later will not be supported due to the above package transition. For 2.0.5 and later, please use @takuma-ru/vue-swpie-modal.

Description

Modal window that can be swiped to close.(Swipeable Bottom Sheet)

DEMO

https://vue-swipe-modal.vercel.app/

Getting Started

  1. Install
npm i nekoo_vue_swipemodal
yarn add nekoo_vue_swipemodal
  1. Come on, let's use it.
<template>
  <div>
    <button @click="modal = true">open</button>

    <swipe-modal
      v-model="modal"
      contents-height="80vh"
      contents-width="100%"
      border-top-radius="20px"
    >
      <h1>contents</h1>
    </swipe-modal>
  </div>
</template>

<script>
import swipeModal from 'nekoo_vue_swipemodal'
import 'nekoo_vue_swipemodal/dist/swipemodal.css'

export default {
  name: 'App',

  data() {
    return {
      modal: false
    }
  },

  components: {
    swipeModal
  }
}
</script>

Props

Modal General
VariableTypedefaultDetails
v-modelBooleanfalseControl the opening and closing
darkBooleanfalseDark mode
Background
VariableTypedefaultDetails
persistentBooleanfalseDon't close it by pressing background (out of modal)
backgroundColorString#80808080Background (out of modal) color
Modal
VariableTypedefaultDetails
fullscreenBooleanfalseDisplay in full screen mode (height: 100%)
noTipBooleanfalseDon't show the chip at the top of the modal.
contents-widthString100%Width of the modal
contents-heightString30vhHeight of the modal
border-top-radiusStringnullRadius at the top of the modal(This value takes precedence)
border-top-left-radiusString0pxModal upper left radius
border-top-right-radiusString0pxModal upper right radius
contents-colorStringwhiteModal background color
tip-colorString#c8c8c8Tip chip color
dark-contents-colorStringblackModal background color in dark mode

Keywords

FAQs

Last updated on 27 Jan 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc