diff --git a/site/src/components/LinkPreview.astro b/site/src/components/LinkPreview.astro
index 1d0a1fb4f..4bf2d127d 100644
--- a/site/src/components/LinkPreview.astro
+++ b/site/src/components/LinkPreview.astro
@@ -1,24 +1,17 @@
---
+import type { LinkPreview as Preview } from '../lib/link-preview'
+import { cardHtml, previewCard, previewLabel } from '../lib/link-preview-card'
+
interface Props {
id?: string
- title?: string
- description?: string
- href?: string
- actionLabel?: string
+ /** The card to carry in the page's own HTML; without one, the card the browser fills for each reference link. */
+ preview?: Preview
class?: string
}
-const { id = 'reference-link-preview', title = 'Reference preview', description = '', href,
- actionLabel = 'Open reference', class: className } = Astro.props
+const { id = 'reference-link-preview', preview, class: className } = Astro.props
---
-
- {title}
-
- {description}
-
-
- {actionLabel}
-
+
', footer: ['x', 'a & b'], signature: '