Skip to content

MazBackdrop

MazBackdrop is a standalone component to manage components that need a backdrop

INFO

Before you have to import the global css files in your project, follow instructions in Getting Started

TIP

This component uses <Teleport to="body">, so you can implement this component anywhere you want

Props, Event & Slots

Props

Prop nameDescriptionTypeValuesDefault
modelValueboolean-false
teleportSelectorstring-'body'
beforeCloseTSFunctionType-undefined
persistentboolean-false
noCloseOnEscKeyboolean-false
transitionNamestring-'backdrop-anim'
backdropClassTSIndexedAccessType-undefined
backdropContentClassTSIndexedAccessType-undefined

Events

Event namePropertiesDescription
openemitted when modal is open
closeemitted when modal is close
update:model-valueemitted when modal is open or close
before-closeemitted before modal is close

Slots

NameDescriptionBindings
default

Expose

onBackdropAnimationEnter

onBackdropAnimationLeave

onBackdropClicked

close

present

toggleModal

onKeyPress