0.1.11 • Published 2 years ago

vuety-modal v0.1.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vuety Modal

License: MIT

Vuety Modal is a modal component library for Vue 3 \ Soon new features

Installation

npm i vuety-modal

Next step is setting up Vuety configuration.

import {createApp} from 'vue';
import App from './App.vue';
import Vuety from 'vuety-modal/config';
const app = createApp(App);

app.use(Vuety);

Usage

Use modal component

<template>
  <button @click="show = true">open modal</button>
  <Modal v-model:show="show">
    <div class="w-screen sm:w-60 h-screen sm:h-60 bg-white sm:m-auto flex flex-col items-center justify-center p-8">
      <div>Modal content</div>
      <button @click="show = false">close</button>
    </div>
  </Modal>
</template>
<script setup>
import { ref } from "vue";
import Modal from "vuety-modal/modal"

const show = ref(false);
</script>

Events

EventTypeDescription
@openCallbackCallback to invoke when modal is showed.
@closeCallbackCallback to invoke when modal is hidden.
0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago