From 6d3c8065a6b6e5443c6f8bc38931acfd18d7ff19 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 12 Feb 2026 14:05:54 +0100 Subject: [PATCH] docs/frontend-system: update to use icon element Signed-off-by: Patrik Oldsberg --- docs/frontend-system/architecture/15-plugins.md | 4 ++-- .../building-plugins/04-built-in-data-refs.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/frontend-system/architecture/15-plugins.md b/docs/frontend-system/architecture/15-plugins.md index 600dd3b4bd..65fc86c8be 100644 --- a/docs/frontend-system/architecture/15-plugins.md +++ b/docs/frontend-system/architecture/15-plugins.md @@ -52,12 +52,12 @@ export default createFrontendPlugin({ ### `icon` option -The display icon of the plugin, used in page headers and navigation. The type is `IconComponent` from `@backstage/frontend-plugin-api`, which is a React component that accepts an optional `fontSize` prop. +The display icon of the plugin, used in page headers and navigation. The type is `IconElement` (`JSX.Element | null`) from `@backstage/frontend-plugin-api`. ```tsx export default createFrontendPlugin({ pluginId: 'my-plugin', - icon: MyPluginIcon, + icon: , extensions: [...], }); ``` diff --git a/docs/frontend-system/building-plugins/04-built-in-data-refs.md b/docs/frontend-system/building-plugins/04-built-in-data-refs.md index 1cd30f6bc6..9949c4a3ae 100644 --- a/docs/frontend-system/building-plugins/04-built-in-data-refs.md +++ b/docs/frontend-system/building-plugins/04-built-in-data-refs.md @@ -44,11 +44,11 @@ The `title` data reference can be used for defining the extension input/output o ### `icon` -| id | type | -| :---------: | :-------------: | -| `core.icon` | `IconComponent` | +| id | type | +| :---------: | :-----------: | +| `core.icon` | `IconElement` | -The `icon` data reference can be used for defining the extension input/output of icon components. The type is `IconComponent` from `@backstage/frontend-plugin-api`. +The `icon` data reference can be used for defining the extension input/output of icon elements. The type is `IconElement` (`JSX.Element | null`) from `@backstage/frontend-plugin-api`. ### `routePath`