Minimal lens layout
A lens frame with content-height sheets, folded corner buttons and search in the sidebar head.
Minimal lens layout
Install the package, then run shtuk run lenses build. Installation selects it when Design has an empty
layout: field. The layout's browser assets are design/layout-minimal/layout.css and layout.js.
window.Layout.mount(root, parts) places the sidebar, page and settings nodes provided by the lens kit.
It returns the controller in the Lens layout convention.
The kit provides parts.connect for shared sheet controls and search. The layout supplies the frame, sheet placement
and an insertLeft(panel) callback. Lens authors use Lens.page and Lens.ui.
| Controller | Use |
|---|---|
shell, body | Frame and page region |
panel(), mountLeft(panel) | Get the right panel or attach an optional left panel |
open(region, on, focus?) | Fold or reveal a sheet and optionally move focus |
cardHost | Closed host for card presentation, which LAY-2 implements |
Run bun test for the install action and layout contract checks.