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
| Name | Type | Default | Description |
|---|---|---|---|
v-model:open | boolean | false | Slides 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. |
title | string | — | drawer__t; labels the dialog (#title slot). |
note | string | — | Short figure beside the title (#note slot). |
dismissible | boolean | true | Close on a scrim click. |
width | number | string | min(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. |
#default | slot { close } | — | drawer__body content, e.g. taskrow articles. |
#actions | slot | — | Extra head controls before the × button. |
@close | () => void | — | Closed by any route. |