💬

vue-promise-modals

vue-promise-modals is a simple Vue 3 plugin for opening modals using promises while maintaining type safety and inference.



Installation

Usage

vue-promise-modals exposes a useModals composable that returns the openModal function that can be used to open modals. The modals are 'resolved' using either the modal-resolve (for successful completion) or modal-reject (for failure) events.

Transitions

Transition animations can be applied to the modals by passing in the options in the vue-promise-modals Vue plugin. The plugin options follow the same options as the props accepted by the Vue TransitionGroup element.

Demo

Status: Not Opened