
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
simple-modal-vue
Advanced tools
Very light and simple modal component for Vue
npm install simple-modal-vue --save
yarn add simple-modal-vue --save
Usage in example
<template>
<div>
<simple-modal v-model="isShow" title="Modal Header">
<template slot="body">
<h2>My modal</h2>
<input>
<p>Hello you</p>
</template>
<template slot="footer">
<button>OK</button>
</template>
</simple-modal>
<button @click="isShow = !isShow">on off button</button>
</div>
</template>
<script>
import SimpleModal from 'simple-modal-vue'
export default {
name: 'SimpleModalExample',
components: { SimpleModal },
data() {
return { isShow: false }
},
}
</script>
Name | Required | Type | Default | Description |
---|---|---|---|---|
title | false | String | Name of the modal | |
hasButtonClose | false | Boolean | false | If true allows showing the button close on the modal |
hasFooter | false | Boolean | false | If true allows showing the footer of the modal |
size | false | String ['responsive', 'small', 'big' ] | 'responsive' | If true allows resizing depend on config the modal window. |
Name | Description |
---|---|
onOpen | Emits when modal is opened |
onClose | Emits when modal is closed |
FAQs
Build an extremely easy modal component in Vuejs
The npm package simple-modal-vue receives a total of 176 weekly downloads. As such, simple-modal-vue popularity was classified as not popular.
We found that simple-modal-vue demonstrated a not healthy version release cadence and project activity because the last version was released 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.