Skip to content

section

section(title, opts?, children?): SectionDescriptor

Defined in: containers.ts:33

@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” }), ]);

string

SFSymbolName

string

boolean

string

ViewDescriptor[] = []

SectionDescriptor