Skip to content

MazDialog

MazDialog is a standalone dialog component to show important informations to the user or propose specific action. Many options are available. You can hide the header or the footer, full-size layout, differents states etc.

INFO

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

TIP

This component usex <Teleport to="body"> with MazBackdrop, so you can implement this component anywhere and it inherits all its props

Basic usage

Scrollable

For long content, you can enable scrolling in content part (Header and footer slot remain visible at top and bottom)

WARNING

With this option, an overflow is applied: So, some problems with absolute content may appear - such as <MazSelect /> opened list can not be visible outside the dialog content part, you should scroll again to show the full content - Check example below

Props, Event & Slots

Props

Prop nameDescriptionTypeValuesDefault
title--undefined
noClose--false
maxWidth--'100%'
minWidth--'32rem'
scrollable--false
persistent--false

Events

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

Slots

NameDescriptionBindings
headerHeader slotclose Function - close function
titleTitle slot in the header
defaultDefault contentclose Function - close function
footerFooter slotclose Function - close function

Expose

close