vue-mzc-modal
v1.0.1
Published
Simple Vue2 modal component
Downloads
4
Readme
vue-mzc-modal
Simple Vue2 modal component
Installation
npm install vue-mzc-modal --save
Usage
import VueMzcModal from "vue-mzc-modal";
export default {
components: {
VueMzcModal,
},
data() {
return {
opened: false,
};
},
};
<button @click="opened = true">Open</button>
<vue-mzc-modal v-if="opened" title="Info" @close="opened = false">
content...
</vue-mzc-modal>
Customize
.vue-mzc-modal {
--vue-mzc-modal-overlay-color: rgba(0,0,0, 0.5);
--vue-mzc-modal-box-gap: 30px;
--vue-mzc-modal-box-width: 410px;
--vue-mzc-modal-box-border-radius: 10px;
--vue-mzc-modal-box-title-size: 1.25em;
--vue-mzc-modal-box-text-color: #000000;
--vue-mzc-modal-box-background-color: #ffffff;
--vue-mzc-modal-box-close-image: url("data:image/svg+xml...");
}