Phials developer documentation
User guide
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

NameTypeRequiredDescription
area"toolbar"yes
iconstring | (ctx: CommandContext) => stringnoIcon override for toolbar display
prioritynumbernoOrder priority (higher = more left)
fixedbooleannoIf true, cannot be removed by user
showLabelbooleannoWhether to show text label by default (can be overridden by user config)
showArrowbooleannoWhether to show the dropdown chevron on commands with children (default true)
active(ctx: CommandContext) => booleannoToggle/active state indicator
groupstringnoGroup ID for ButtonGroup
subToolbarimport("svelte").Component<{ ctx: ToolbarContext }>noOptional sub-toolbar component shown when button is toggled