Solarus Design system
Updated · 20 Nov 2026 solarus.run
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-btn close 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 onClose and 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