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

1.0.3 • Public • Published

vue-use-modal

Installation

> pnpm add @stephenhebert/vue-use-modal

Usage

App.vue

<script setup>
import { ModalContainer } from '@stephenhebert/vue-use-modal'
...
</script>

<template>
  ...
  <ModalContainer />
</template>

Component.vue

<script setup>
import { show } from '@stephenhebert/vue-use-modal'

import ModalComponent from '...'

function showMyModal() {
  show(ModalComponent, { prop1, prop2, ...})
}
</script>

See example

Readme

Keywords

Package Sidebar

Install

npm i @stephenhebert/vue-use-modal

Weekly Downloads

18

Version

1.0.3

License

MIT

Unpacked Size

301 kB

Total Files

22

Last publish

Collaborators

  • stephenhebert