A customizable, stackable, and lightweight modal component for Vue.js 3.
:fire: HEADS UP! You're currently looking at vue-modal next
branch for Vue.js 3.
If you're looking for a Vue.js 2 compatible version of vue-modal, please check out the master
branch.
vue-modal is designed with web applications in mind and tries to stick as much as possible to the accessibility best practices set in the WAI-ARIA Dialog (Modal) section of W3C.
v-model
or with a name
prop and show
/hide
functionsbefore-open
, opening
, opened
, before-close
, closing
, closed
, update:modelValue
(close)esc
key<body>
by default, ability to append to a custom elementEdge |
Firefox |
Chrome |
Safari |
Opera |
---|---|---|---|---|
Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
Click here for documentation and examples https://next--vue-modal-demo.netlify.app/
In order to start development:
pnpm i
pnpm run dev