An open API service indexing awesome lists of open source software.

https://github.com/qgp9/vue-ya-semantic-modal


https://github.com/qgp9/vue-ya-semantic-modal

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# vue-ya-semantic-modal
[![npm](https://img.shields.io/npm/v/vue-ya-semantic-modal.svg)](https://www.npmjs.com/package/vue-ya-semantic-elements)
[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)

Yet another semantic-ui modal component for Vue2 without Jquery but with pure Vue transition

This component only provide a frame and transitions for modal. Configurations of an inner modal is on your own, and it should be almost identical with usual way of semantic-ui. If your are not sure of how configure it, follow [official examples](https://semantic-ui.com/modules/modal.html#/examples)

[demo](http://vue-ya-semantic.netlify.com/#/modal) [source](https://github.com/qgp9/vue-ya-semantic-demo/blob/master/src/components/Modal.vue)

## Set Up
* Global set up
```js
import YaModal from 'vue-ya-semantic-modal'

Vue.use(YaModal)
```
* Local set up for each component
```js
import YaModal from `vue-ya-semantic-modal'

export default {
name: 'MyComponent',
props: ['myProp'],
...
components: {
YaModal: Yamodal() // It's important to use as function
}
```

## Usage
* Basic usage
```html
Show Modal

Title


Any content for your modal