@zwkang/vue-use-modal
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta.6 • Public • Published

@zwkang/vue-use-modal

description: a simple modal component for vue3 to using with function call

experimental !!! do not using in production!

Features

  • simple hook function call modal.
  • experimental

Try it now

const { open } = useDialog({
  component: Component,
  props: {
    title: 'title',
    content: 'content',
  },
  lazy: true,
});

const { open, close } = useDialog({
  component: Component,
  props: {
    onClose: () => {
      close();
    },
    title: 'title',
    content: ref('content'),
  },
  lazy: false,
});

example usage

example

LICENSE

MIT License © 2022 zwkang

Readme

Keywords

none

Package Sidebar

Install

npm i @zwkang/vue-use-modal

Weekly Downloads

34

Version

0.0.1-beta.6

License

MIT

Unpacked Size

14.9 kB

Total Files

10

Last publish

Collaborators

  • zwkang