smv-modal

use modal with no tear πŸ˜‚

Usage no npm install needed!

<script type="module">
  import smvModal from 'https://cdn.skypack.dev/smv-modal';
</script>

README

smv modal

use modal with no tear πŸ˜‚

Travis branch coverage download version license

Get Start

Installation

npm i --save smv-modal

Basic Usage

try it out

Edit Vue Template

import Modal from 'smv-modal';

const modal = Modal({
  title: 'Welcome',
  content: 'hallo world~'
});

async showModal() {
  const result = await modal.show(); // modal.show() return promise
  console.log(result);
}

showModal();

Please see Documentation for more usage.

Contributors

Thanks goes to these wonderful people (emoji key):


hwencc

πŸ’» πŸ€” πŸ’‘ πŸ“–

This project follows the all-contributors specification. Contributions of any kind welcome!