Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: showcase card links not opening on click (#829)

Abhinav A84be2ca4b0b3
diff --git a/apps/www/components/sections/showcase.tsx b/apps/www/components/sections/showcase.tsx
index e6f9630b..ce869ecd 100644
--- a/apps/www/components/sections/showcase.tsx
+++ b/apps/www/components/sections/showcase.tsx
@@ -71,8 +71,7 @@ export function Showcase() {
.map((showcase, idx) => (
<ShowcaseCard
key={idx}
- {...showcase}
- href={showcase.url}
+ href={showcase.data.href ?? showcase.url}
title={showcase.data.title ?? ""}
affiliation={showcase.data.affiliation ?? ""}
image={showcase.data.image ?? ""}
diff --git a/apps/www/source.config.ts b/apps/www/source.config.ts
index 66dab1c5..87146fa4 100644
--- a/apps/www/source.config.ts
+++ b/apps/www/source.config.ts
@@ -65,6 +65,7 @@ export const showcase = defineDocs({
featured: z.boolean().optional().default(false),
href: z.string().url().optional(),
image: z.string().optional(),
+ href: z.string().optional(),
}),
},
})