Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Phunky/vue-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-modal

A very simple modal component for use with VueJS.

It requires Webpack and Babel to run, i'm open to PRs for extending support for other use cases.

Setup

import VueModal from 'vue-modal'
...
Vue.use(VueModal)

Usage

<v-modal v-ref:modal>
  <div class="ui segments">
    <div class="ui segment">
      <h3 class="ui header">Modal header</h3>
    </div>
    <div class="ui segment content">
      <p>Content</p>
    </div>
    <div class="ui segment">
      <button class="ui button" @click="$refs.modal.hide">Hide modal</button>
    </div>
  </div>
</v-modal>

The modal content is not styled in anyway, it is up to you to bring your own code ;)

About

A simple modal component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published