Feedback & overlays / Drawer

Feedback & overlays

Drawer

A right-side panel for a queue or a record you read beside the list rather than instead of it.

import { EcoDrawer } from "vue-ecosphere"

Reminders due

Open the drawer, dismiss a few rows, close it with Escape.

Width

A form has a natural width: set width (px or a CSS length) instead of leaving it at the default. Narrow the window below 1024px and the drawer spans the screen again.

API

NameTypeDefaultDescription
v-model:openbooleanfalseSlides the drawer in (drawer.is-open) over a soft scrim, teleported to body. Escape, × and the scrim close it; focus is trapped and returns to the opener.
titlestring—drawer__t; labels the dialog (#title slot).
notestring—Short figure beside the title (#note slot).
dismissiblebooleantrueClose on a scrim click.
widthnumber | stringmin(64vw, 900px)Panel width in px or any CSS length, set through --drawer-w and capped at the viewport. Below 1024px the drawer spans the screen regardless.
#defaultslot { close }—drawer__body content, e.g. taskrow articles.
#actionsslot—Extra head controls before the × button.
@close() => void—Closed by any route.