From e962bc374379e67f287c9ad07c1b93c6f3fa7006 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 13 Nov 2025 10:28:01 -0500 Subject: [PATCH] docs: clarify meaning of string value for menu item icon (#48938) * docs: clarify meaning of string value for menu item icon Co-authored-by: Niklas Wenzel * fix: format Co-authored-by: Niklas Wenzel * fix: wording Co-authored-by: Niklas Wenzel --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Niklas Wenzel --- docs/api/menu-item.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/menu-item.md b/docs/api/menu-item.md index 90c72fb578f1..aa3d6ce6ee21 100644 --- a/docs/api/menu-item.md +++ b/docs/api/menu-item.md @@ -34,7 +34,8 @@ See [`Menu`](menu.md) for examples. * `sublabel` string (optional) _macOS_ - Available in macOS >= 14.4 * `toolTip` string (optional) _macOS_ - Hover text for this menu item. * `accelerator` string (optional) - An [Accelerator](../tutorial/keyboard-shortcuts.md#accelerators) string. - * `icon` ([NativeImage](native-image.md) | string) (optional) + * `icon` ([NativeImage](native-image.md) | string) (optional) - Can be a + [NativeImage](native-image.md) or the file path of an icon. * `enabled` boolean (optional) - If false, the menu item will be greyed out and unclickable. * `acceleratorWorksWhenHidden` boolean (optional) _macOS_ - default is `true`, and when `false` will prevent the accelerator from triggering the item if the item is not visible.