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” }), ]);
Parameters
Section titled “Parameters”string
SFSymbolName
badge?
Section titled “badge?”string
isExpanded?
Section titled “isExpanded?”boolean
string
children?
Section titled “children?”ViewDescriptor[] = []
Returns
Section titled “Returns”SectionDescriptor