https://github.com/eperedo/vue-basic-modal
A basic modal made with vove, I mean with luve... VUE!
https://github.com/eperedo/vue-basic-modal
component-library modal vue
Last synced: about 2 months ago
JSON representation
A basic modal made with vove, I mean with luve... VUE!
- Host: GitHub
- URL: https://github.com/eperedo/vue-basic-modal
- Owner: eperedo
- License: mit
- Created: 2018-05-12T14:07:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-12T21:53:46.000Z (about 7 years ago)
- Last Synced: 2025-03-18T15:57:01.405Z (2 months ago)
- Topics: component-library, modal, vue
- Language: Vue
- Homepage: https://modal.eperedo.com
- Size: 239 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Vue Basic Modal
> A basic modal made with vove, I mean with luve... VUE and LOVE!
[Demo on jsbin](https://jsbin.com/bekogarazu/1/edit?html,js,output)
### Usage
1. Install
```bash
npm install vue-basic-modal
```or using UMD
```html
```
2. Add the css file somewhere in your application
```html
```
3. And finally the component!
```html
Show Modal
I am a Modal
import basicModal from 'vue-basic-modal';
export default {
name: 'my-comp',
data: () => {
return {
state: true,
};
},
components: {
basicModal: basicModal,
// basicModal: window['basic-modal'], if you are using UMD version
},
};```
### Build component
```bash
npm run component
```