Astro components LinkCard
// LinkCard

LinkCard

Astro wrapper for a GlassPanel link tile with a title, hover arrow, eyebrow and an indexed item list.

LinkCard renders a GlassPanel as an <a> with the class talos-linkcard. It covers three tile shapes with one component: a navigation tile (title and eyebrow), a preview tile (title and an indexed item list) and a profile tile (an image in the media slot and a call to action in the default slot). The render order is media, header (icon, title, arrow), eyebrow, items, default slot. Icons and images stay with the consumer through slots; the package adds no icon dependency.

PREVIEW

Instruments

22 live readouts

Preview tile

---
import LinkCard from "@j_shelfwood/talos-ui/astro/LinkCard.astro";
---
<LinkCard href="/docs/instruments/" title="Instruments" eyebrow="22 live readouts" />

<LinkCard href="/changelog" title="Release notes" items={["Canvas module", "Window and terminal"]}>
  <Icon slot="icon" name="lucide:list" />
</LinkCard>

Slots

SlotContent
mediaan image above the header (profile tile)
icona leading icon beside the title
arrowreplaces the default ↗ hover arrow
defaultcontent after the items, such as a call to action

Props

PropTypeDefaultMeaning
hrefstringrequiredlink target of the tile
titlestringrequiredthe tile’s heading
eyebrowstringnonemuted uppercase line under the title
itemsstring[]nonelist under the header, numbered 01, 02 and so on
hoverArrowbooleantrueshows the top-right arrow that moves on hover
...restOmit<HTMLAttributes<"a">, "title">noneforwarded to the <a>

Requires @j_shelfwood/talos-ui/talos.css (the tile is a GlassPanel).