Skip to content

Vue2 Support

If you are using Vue2, you can install @overlastic/vue2 and use a mixin to pass properties to the component. Here is an example:

ts
import { useDisclosure } from '@overlastic/vue2'
export default {
  mixins: [useDisclosure({ duration: 1000 })],
  methods: {
    onClick() {
      // use this.$visible
      // use this.$confirm or this.$cancel
    }
  }
}

MIT Licensed