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.
Navigation tile
PREVIEW
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
| Slot | Content |
|---|---|
media | an image above the header (profile tile) |
icon | a leading icon beside the title |
arrow | replaces the default ↗ hover arrow |
| default | content after the items, such as a call to action |
Props
| Prop | Type | Default | Meaning |
|---|---|---|---|
href | string | required | link target of the tile |
title | string | required | the tile’s heading |
eyebrow | string | none | muted uppercase line under the title |
items | string[] | none | list under the header, numbered 01, 02 and so on |
hoverArrow | boolean | true | shows the top-right arrow that moves on hover |
...rest | Omit<HTMLAttributes<"a">, "title"> | none | forwarded to the <a> |
Requires @j_shelfwood/talos-ui/talos.css (the tile is a GlassPanel).