A dialog window that can be used to display a message or request user input.
simple example for modal component
this modal close with `esc` key of keyboard if use GloriousStore and add object to modals state
<GModal
v-model="modal"
title="modal"
>
this is simple modal
</GModal>
config for global setting , set on nuxt.config
glorious:{
components:{
modal:{
props:{
size:'md',
colorBtn:'green',
}
}
}
}
Prop | Type | Default |
---|---|---|
model value | any | |
title | string | |
size | xl | lg | md | sm | xs | md |
okBtn | string | |
closeBtn | string | |
blur | boolean | |
blurClose | boolean | |
okBtnLoading | boolean | false |
colorBtn | orange | blue | gray | red | primary | string | green |
slot | Default |
---|---|
default | any |
emit | Default |
---|---|
ok | any |
close | any |