Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Web docs

Responsive composition: Adaptive overlay

Retain draft state and focus as a desktop dialog becomes a mobile sheet.

Open the editor, change its draft and resize the viewport. At 40rem and narrower the same dialog content becomes a bottom sheet, retaining the draft and focus.

Preferences

This fictional draft stays in the same control when the viewport changes.

Install

lumen add adaptive-overlay --target astro

React and Elements targets are also available. Mount the matching adapter behavior once. Dialog's responsive layout changes presentation without moving content into a second overlay; the editable stylesheet only widens the dialog and wraps its header.

Product workbenches · Dialog contract

Web docsFull catalog