Add an action node as a child of the current group.
Optionalchecked?: booleanOptionalindent?: numberDepth of the row in a menu listing a tree, which indents it beneath its parent row; a toolbar ignores it.
Optionalrender?: (props: CustomRenderProps) => ReactNodeRenders an arbitrary control in place of the standard button. Required when variant is
'custom'; the contributor owns the element (and its interactions) so the toolbar can host
affordances the action model cannot express (e.g. press-and-hold, an embedded dropdown).
Optionalvalue?: stringOptionalvariant?: "action" | "primary" | "toggle" | "switch" | "custom" | "text"text is a plain label (a panel's name) that takes the free space; it is not an item and never collapses.
Optionalpresentation?: Partial<Record<string, Partial<MenuActionChrome>>>Per-surface chrome overrides, keyed by disposition — lets one action declare multiple
dispositions (e.g. ['toolbar', 'list-item']) yet render appropriately in each: a primary
toolbar button here, a plain context-menu row there. Applied by the surface bridge that
already knows which disposition it's rendering (graphActions's surface option,
getListActions), so producers declare it once alongside disposition.
Add a control the caller renders itself (a picker, a field); it stays in the toolbar and never collapses.
Add a nested action group.
Add a separator.
Optionalvariant: "line" | "gap"Merge pre-built nodes and edges, or build a subgraph via callback scoped to the current group. Falsy values are ignored.
Add a plain label (e.g. a panel's name) that takes the toolbar's free space.
Fluent builder for composing menu action graphs. Subgraph functions return a callback that receives the builder, enabling composition via partial application: