AI Notice: Most documentation right now was auto-generated by an LLM. Handwritten documentation will be implemented over time on the road to 1.0
ToolbarPlacementConfig
Toolbar placement configuration (PathBar toolbar).
extends CommandPlacementBase
Signature
interface ToolbarPlacementConfig extends CommandPlacementBase {
area: "toolbar";
icon?: string | ((ctx: CommandContext) => string);
priority?: number;
fixed?: boolean;
showLabel?: boolean;
showArrow?: boolean;
active?: (ctx: CommandContext) => boolean;
group?: string;
subToolbar?: import("svelte").Component<{
ctx: ToolbarContext;
}>;
}Members
| Name | Type | Required | Description |
|---|---|---|---|
area | "toolbar" | yes | — |
icon | string | (ctx: CommandContext) => string | no | Icon override for toolbar display |
priority | number | no | Order priority (higher = more left) |
fixed | boolean | no | If true, cannot be removed by user |
showLabel | boolean | no | Whether to show text label by default (can be overridden by user config) |
showArrow | boolean | no | Whether to show the dropdown chevron on commands with children (default true) |
active | (ctx: CommandContext) => boolean | no | Toggle/active state indicator |
group | string | no | Group ID for ButtonGroup |
subToolbar | import("svelte").Component<{ ctx: ToolbarContext }> | no | Optional sub-toolbar component shown when button is toggled |