Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@takuma-ru/vue-swipe-modal
Advanced tools
Modal window that can be swiped to close.(Swipeable Bottom Sheet)
⚠️ WARN ⚠️
Due to the eol of vue2, vue2 is no longer supported. vue2 can be used with v4.0.7
or earlier, but we are not responsible for any problems that may occur.
vue-swipe-modal-docs.takumaru.dev
npm i @takuma-ru/vue-swipe-modal@^5.0.0
npm i @takuma-ru/vue-swipe-modal@^4.0.0 @vue/composition-api
Import and use the modal with the vue file you want to use.
<script lang="ts" setup>
import { ref } from 'vue'
import { SwipeModal } from "@takuma-ru/vue-swipe-modal"
const isOpen = ref(false)
</script>
<template>
<button @click="isOpen = true">Open modal</button>
<SwipeModal
v-model="isOpen"
snapPoint="auto"
>
<button @click="isOpen = false">Close modal</button>
Modal content
</SwipeModal>
</template>
<style lang="scss" scoped>
:deep(.modal-style) {
box-sizing: border-box;
width: 100%;
color: white;
background-color: #1d1b20;
border-radius: 1rem 1rem 0 0;
@media (prefers-color-scheme: light) {
color: black;
background-color: #f7f2fa;
box-shadow: 0 1px 4px 0 rgb(0 0 0 / 37%);
}
}
</style>
FAQs
Swipeable Bottom Sheet library for vue2 and vue3
The npm package @takuma-ru/vue-swipe-modal receives a total of 934 weekly downloads. As such, @takuma-ru/vue-swipe-modal popularity was classified as not popular.
We found that @takuma-ru/vue-swipe-modal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.