Link card
An entry point where the whole card is one link: an icon tile, a title, one sentence and the way in — compact, the same on every page; under the pointer its surface and hairline go one step up, nothing moves.
- Domain
- Page blocks & templates
- Support level
- Size
- 2.1 kB gzip, budget 1.1 kB
- Who uses it
- 8 files of the live products and sites import it (Sovkora: 2, krizaka.com: 1) Counted in the dated inventory of 2026-11-23.
import { LinkCard } from "@krizaka/ui/link-card";Web only — React, from @krizaka/ui/link-card. Beta: its API may still change in a minor version.
- Mobile · n/a. A block of a public site's page; an app screen on a phone is built from Screen, Header and Card. → Card
- Desktop · n/a. A public site's page, not a window of the Mac app.
Why it is here. Used by Sovkora, Verikora, krizaka.com.
When to use
- The entry points of a hub: a documentation's sections, the products, the next steps of a guide.
- Any link that deserves more than its words: what the reader finds there, in one sentence.
When not to use
- When the card holds several actions: a card that is a link holds no other link.Use instead: Argument card
- For a link inside a sentence or a list of plain links.Use instead: Chip link
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { LinkCard } from "@krizaka/ui/link-card";Examples
A documentation hub
Three compact cards in a grid: a mark, a title, a sentence, Open.
Stacked, with facts
layout="stack", a category above the title and facts under the text.
An external link
An absolute address: a new tab and the external mark.
The hover
One step of surface and border under the pointer, a ring on focus; nothing moves, no light.
Props
An entry point: the whole card is one link — icon, title, sentence, the way in. Its surface and hairline go one step up under the pointer; nothing moves.
| Prop | Type | Default | Description |
|---|---|---|---|
hrefrequired | string | — | Where the card leads. An absolute URL opens in a new tab, with the external mark. |
titlerequired | ReactNode | — | The title: the name of the destination. |
cta | ReactNode | — | The way in, under the text, with an arrow: Open, Read the guide. |
description | ReactNode | — | One sentence: what the reader finds there. |
extra | ReactNode | — | Under the text, before the way in: facts (Facts), badges. Never another link — the card is one. |
footerAlign | "bottom" | "top" | bottom | Where the facts (extra) and the way in (cta) sit when the card is taller than its text — a row of cards at one
height: bottom pins them to the card's foot, so they share a line across the row; top leaves them under the text. |
hover | CardHover | — | @deprecated Since 3.31 (krizaka-ui#393): does nothing — every card has the one quiet hover. Removed in 4.0. |
icon | ReactNode | — | The icon tile on the left (a product mark, a signature icon): decorative, the title names the link. |
layout | "row" | "stack" | row | row: the icon beside the text (compact, the default); stack: the icon above it. |
linkAs | LinkComponent | — | The app's link component for internal addresses (Next's Link); an <a> otherwise. |
meta | ReactNode | — | A short mono line above the title (a category, a version). |
titleAs | "span" | "h2" | "h3" | "h4" | h3 | The title's element: a heading when the cards are the content of a section (a hub), span inside a list of links. |
Accessibility
- The card is a single link: its accessible name is its whole text — keep it short.
- An absolute address opens in a new tab with
rel="noopener noreferrer"and the external mark. - The icon and the arrow are decorative; the arrow's lean stops under
prefers-reduced-motion. - The hover keeps the same text contrast in dark and light: it moves the surface and the hairline one step, never the text below AA.
hoveris deprecated since 3.31 (krizaka-ui#393): there is one hover.
Keyboard
| Keys | Action |
|---|---|
| Tab | Focuses the card: a 2 px ring of --kz-ring around it. |
Best practices
- One sentence of description; the title names the destination, the way in (
cta) says the action. - Use the product's mark or a signature icon as
icon, never a placeholder. - Pass the app's router link as
linkAs(Next'sLink) so internal links prefetch. - In a row of cards at one height (
CardGrid), the facts (extra) and the way in (cta) are pinned to the foot of each card, so they share a line whatever the length of the sentences;footerAlign="top"keeps them under the text. - In a hub, keep the default
h3titles under the section'sh2; in a list of links,titleAs="span".
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub