файл пакета→ .shtukbase/packages/layout-minimal/README.md
README.md
18 строк, 1.0 КБ.
Этот текст ещё не переведён. Ниже английский оригинал.
- # 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](../design-components/pages/design/conventions/layout.md).
- 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.