Base · Overlays
Drawer
Right slide-over for detail without leaving context. <Drawer onClose label>.
Notes
- Ivory panel, 16px radius, inset 12px from the edges, up to 580px wide, over a
scrim(rgba(15,15,12,.45)). Slides in 40px. - Header: an id row with the round
.x-btnclose at the right, then a display H2. Body uses.kv,.card(transparent inside),.code-pill(slightly darker inside). - Esc and a scrim click close it. On mobile it fills the screen.
- Consumer provides
onCloseand the content. - Not used in the Solarus app. Detail opens in the canvas; on the phone, in a sheet that rises.
Code
// React · window.Solarus <Drawer onClose label /> /* HTML classes · bundle.css */ .drawer