frontend-plugin-api: accept IconElement in AuthProviderInfo

Update the `icon` field on `AuthProviderInfo` to accept `IconElement`
in addition to `IconComponent`, and update consumers in core-components
and user-settings to handle both types at runtime.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-16 11:07:36 +01:00
parent 722ce6f54c
commit e26e3de81e
8 changed files with 44 additions and 15 deletions
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
The login request dialog now handles auth provider icons passed as `IconElement` in addition to `IconComponent`.
@@ -0,0 +1,5 @@
---
'@backstage/plugin-user-settings': patch
---
The `ProviderSettingsItem` `icon` prop now accepts `IconElement` in addition to `IconComponent`.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-plugin-api': patch
---
The `icon` field on `AuthProviderInfo` now accepts `IconElement` in addition to `IconComponent`, letting you pass `<MyIcon />` instead of `MyIcon`.