0.6.1 • Published 6 years ago

@vuels/modal v0.6.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Vuels Modal

npm version

Simple Vue 2 Modal for easy modal access on a site

Features

  • Show a modal on request with the given content
  • Ability to alter the design

Install

npm install @vuels/modal

Usage

Example:

With a .vue component (With webpack or vue-cli projects)

import VuelsModal from '@vuels/modal'

export default {
	name: 'form',
	data() {
		return {
			showModal: false
		}
	},
	components: {	
		VuelsModal
    },
	methods: {
		toggleModal() {
			this.showModal = !this.showModal
		}
	}
}

Your HTML code

<vuels-modal
	v-if="showModal"
	theme="red"
	title="Select Your Option"
	:close="closeButton" />

Clicking the close button emits 'close'

0.6.1

6 years ago

0.6.0

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago