Skip to content

Link Cards

A link with an em-dash-separated description, wrapped in linkcard markers. On GitHub it’s a link with text. In Starlight it’s a clickable card.

View Markdown source
/linkcard
<!-- linkcard -->
[API Reference](/components/) — Complete documentation for all components

Use <!-- linkcards --> (plural) with a Markdown list for a set of link cards.

View Markdown source
<!-- linkcards -->
- [Steps](/components/steps/) — Numbered instructions with guide lines
- [Tabs](/components/tabs/) — Switchable tabbed views
- [File Tree](/components/filetree/) — Interactive file tree from code blocks
<!-- /linkcards -->

Both em dash and spaced hyphen work as separators between title and description.

[Title](/path) — Description with em dash
[Title](/path) - Description with spaced hyphen
ContextRendering
GitHubPlain link(s) with description text
StarlightClickable card(s) with title, description, and arrow icon

None. The <!-- linkcard --> and <!-- linkcards --> markers take no parameters.

<div class="sl-link-card">
<span class="sl-flex stack">
<a href="/path">
<span class="title">API Reference</span>
</a>
<span class="description">Complete documentation</span>
</span>
<svg class="icon">...</svg>
</div>