Skip to main content

Drawer

Properties

PropertyAttributeDescriptionTypeDefault
_align_alignSpecifies the orientation of the drawer."bottom" | "left" | "right" | "top" | undefinedundefined
_label (required)_labelDefines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).stringundefined
_modal_modalIndicates whether the drawer is a modal.boolean | undefinedundefined
_on--Specifies the EventCallback function to be called when the drawer is closing.undefined | ({ onClose?: (() => void) | undefined; })undefined
_open_openSpecifies the default open state of the drawer.boolean | undefinedundefined

Methods

close

close() => Promise<void>

Returns

Type: Promise<void>

open() => Promise<void>

Returns

Type: Promise<void>

Slots

SlotDescription
The Content of drawer.

View example

Live-Editor

Beispiele