@moreillon/vue_modal

0.1.3 • Public • Published

Vue Modal

This is a modal component for Vue.js.

Usage

<template>
  <div>

    <h1>Modal</h1>

    <button
      type="button" @click="open = !open">
      Open modal
    </button>

    <Modal
      @close="open = false"
      :open="open">
      <h2>Modal</h2>
      <p>
        This is the modal content.
      </p>
    </Modal>

  </div>
</template>

<script>
import Modal from '@moreillon/vue_modal'

export default {
  name: 'app',
  components: {
    Modal
  },
  data(){
    return{
      open: false
    }
  }
}
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i @moreillon/vue_modal

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

49.1 kB

Total Files

12

Last publish

Collaborators

  • moreillon