use modal with no tear 😂
npm i --save smv-modal
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();
- or you can write in shorthand
const modal = Modal`I'am content`;
Please see Documentation for detail.
Thanks goes to these wonderful people (emoji key):
hwencc 💻 🤔 💡 📖 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!