Default
Open with v-model and use a scoped footer to request closing.
Open with v-model and use a scoped footer to request closing.
Choose one of four edges and a CSS length or the default/large preset. Direction ltr/rtl/ttb/btt is also supported.
Header, title, extra, footer and close artwork are independent. Scoped slots receive close, titleId, titleClass, state and live size. Region styles apply to mask, wrapper, header, body and footer.
Return a Promise or accept done(cancel?). Rejection shows a notification; false or done(true) keeps the drawer quietly. All controlled closing requests share approval. With a guard, overlay clicks require a local explicit true. Pending requests are deduplicated and loader exits finish before closing. Component destruction and forced ancestor closing release pending work.
Content mounts lazily and is retained after closing. destroy-on-close resets component-local state after the exit; force-render mounts ahead of opening and keeps content. open-delay and close-delay control request timing. Legacy open/close and opened/closed report animation completion; before-open/before-close report the start.
Nested drawers share z-index, Escape ownership and scroll locking. push controls the parent displacement. Closing the parent also closes visible child drawers.
Teleport is enabled by default. append-to/get-container select a target; teleported=false or get-container=false renders inline. Positioned containers define local bounds. mask=false with modal-penetrable and lock-scroll=false allows page interaction.
The default content instance stays mounted during loading. The loading slot receives the active loading request and can render a custom indicator. SLogoLoading-based indicators participate in completion waiting.
Drag the edge; the handle supports arrow keys, Shift, Home and End. v-model:size receives pixels, and update:width/update:height follows the active axis. Resize events provide size, placement and the input event.
Rounded and square panels follow local props and shared configuration.
String | NumberBooleanBooleanBooleanBooleanString | HTMLElementBooleanBooleanBooleanNumberBooleanBoolean | BooleanStringCSSPropertiesCSSPropertiesCSSPropertiesCSSPropertiesCSSProperties(reason?: ) => Promise<boolean>