Skip to content

Vue2 Support

If you are using Vue2, you can install the @overlays/vue2 and use mixins to pass properties to components. Here's an example:

ts
import { useOverlay } from '@overlays/vue2'
export default {
  mixins: [useOverlay({ duration: 1000 })],
  methods: {
    onClick() {
      // use this.$visible
      // use this.$resolve or this.$reject
    }
  }
}

MIT Licensed