Skip to content

MazDrawer

MazDrawer is a standalone component to add a collapsible sidebar at the top and bottom bar

TIP

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

Basic usage

Props

NameDescriptionTypeRequiredDefaultPossible values
titleThe title of the drawerstringNoundefined-
variantThe variant of the drawer"right" | "top" | "left" | "bottom"No'right'right', 'top', 'left', 'bottom
sizeThe size of the drawerstringNo'30rem'-
backdrop-classThe class of the backdropstringNoundefined-
hide-close-buttonDisable the close buttonbooleanNoundefined-
no-closeanyNofalse-

Events

Event namePropertiesDescription
closeemitted when drawer is close (after animation)
openemitted when drawer is open
before-closeemitted before drawer is close
update:model-valuevalue boolean - The value of the modelemitted when drawer is open or close

Slots

NameDescriptionBindings
title
default