#071
Link card
A solid Card that is a link as a whole, with a Surface heading and a one line description.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Link card" pattern (@codeatlasdev/ui demo #071, surfaces/card) in my app.
Call get_demo({ ids: ["#071"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Clickable cards that navigate to a detail page, such as index tiles or related-article links.
Keep these library parts, with the props and tokens the demo uses:
- Card from "@codeatlasdev/ui"
Behaviour to keep:
- `<Card href="/docs/surfaces/surface/" title="Surface" headingLevel={3} material="solid" elevation={2}>`
- `href` makes the whole card the link
- `headingLevel={3}` sets the title heading level
- Body is plain text: The one painted container every card is built on
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Card
@codeatlasdev/ui
How it is built
- `<Card href="/docs/surfaces/surface/" title="Surface" headingLevel={3} material="solid" elevation={2}>`
- `href` makes the whole card the link
- `headingLevel={3}` sets the title heading level
- Body is plain text: The one painted container every card is built on
Related
Loading source.