Skip to content

scroll

scroll(children, opts?): ScrollDescriptor

Defined in: containers.ts:21

@appos.space/view-builders — Typed ViewDescriptor builder helpers.

Zero runtime cost: esbuild tree-shakes these to plain object literals.

Usage: import { vstack, text, listItem, section, button } from “@appos.space/view-builders”;

const view = vstack([ section(“Files”, { icon: “doc.on.doc”, badge: “3” }, [ listItem(“readme.md”, { icon: “doc”, action: “open:readme” }), ]), button(“Add”, { action: “add-file” }), ]);

ViewDescriptor[]

"horizontal" | "vertical"

ScrollDescriptor