fix(plugin): support icon-only composer pills

Composer pills use an omitted label to fall back to the accessible title, but rejected every explicit no-label value. Preserve that omission default while representing null and empty labels as icon-only controls.
This commit is contained in:
paseo-bot[bot]
2026-09-10 17:55:37 +02:00
parent d7c7044dfc
commit eb9a4df9b9
7 changed files with 74 additions and 21 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ export type PluginButtonMenuEntry =
export interface PluginButton {
title: string;
icon: PluginButtonIcon;
/** Omit for an icon-only header button. Composer pills use title when omitted. */
label?: string;
/** Omit to use the placement default. Pass null or an empty string for icon-only. */
label?: string | null;
visible?: boolean;
disabled?: boolean;
behavior: PluginButtonBehavior;