diff --git a/nx-dev/ui-markdoc/src/lib/tags/cards.component.tsx b/nx-dev/ui-markdoc/src/lib/tags/cards.component.tsx
index 3402a43619..3cc4c6c5a9 100644
--- a/nx-dev/ui-markdoc/src/lib/tags/cards.component.tsx
+++ b/nx-dev/ui-markdoc/src/lib/tags/cards.component.tsx
@@ -117,7 +117,7 @@ export function LinkCard({
}: {
title: string;
type: string;
- icon: string; // `icon` is the link to the SVG file
+ icon: string; // Can be either a component name or a direct image URL
url: string;
appearance?: 'default' | 'small';
}): JSX.Element {
@@ -138,13 +138,20 @@ export function LinkCard({
}
)}
>
- {icon &&
- (frameworkIcons[icon as Framework]?.image ||
- callIfFunction(nxDevIcons[icon as keyof typeof nxDevIcons]) ||
- callIfFunction(
- (heroIcons[icon as keyof typeof heroIcons] as any)?.render,
- { className: 'w-full h-full' }
- ))}
+ {icon.startsWith('/') ? (
+
+ ) : (
+ frameworkIcons[icon as Framework]?.image ||
+ callIfFunction(nxDevIcons[icon as keyof typeof nxDevIcons]) ||
+ callIfFunction(
+ (heroIcons[icon as keyof typeof heroIcons] as any)?.render,
+ { className: 'w-full h-full' }
+ )
+ )}
)}