Base · Overlays
Modal
Centred dialog for focused flows (add a repository, send feedback). <Modal onClose width label>.
Notes
- Ivory, 16px radius, up to 640px wide (or
width), over thescrim; pops in from 14px below. - One top row: icon or eyebrow on the left,
.x-btnclose top-right; then the display title, the body, and the actions right-aligned (oneprimary). - Esc, a scrim click, or a click outside the dialog close it.
- Consumer provides
onClose, the content and optionallywidth. - Not used in the Solarus app. A confirmation is an
ActionCardin the conversation.
Code
// React · window.Solarus <Modal onClose width label /> /* HTML classes · bundle.css */ .modal