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`