Components
Links
13 components. Every one is themeable, keyboard operable, and configurable by data attribute, JSON or JavaScript.
Links
Accordion Links
Several disclosures in one stack, with arrow-key navigation between triggers.
accordion-linksdefaultexpandedempty
Preview
Usage
Props
| Prop | Type | Default | Description |
sections |
array |
[] |
[{ title, summary, items[], text, open }] |
single |
boolean |
false |
Only one section open at a time. |
variant |
string |
"bordered" |
Visual treatment. All variants share one behaviour and one API. One of: bordered, flush |
headingLevel |
number |
3 |
2–6. |
Accessibility
- Each trigger is its own tab stop; ↑/↓ move between triggers and Home/End jump to the ends.
- In single-open mode the closing section's aria-expanded is updated too, not just the opening one's.
Design tokens
--lb-outline --lb-r-md --lb-s-3
Links
Card Link
A link with room for an image, a title and a supporting line.
card-linkdefaulthoverfocusloadingdisabled
Preview
Usage
Props
| Prop | Type | Default | Description |
labelrequired |
string |
— |
The visible text. Says what happens, in the reader's words. |
hrefrequired |
string |
— |
Destination. javascript: and non-image data: URLs are rejected. |
description |
string |
— |
One supporting line beneath the label. |
icon |
string |
— |
Kit glyph name, or a Simple Icons slug for a brand mark. |
trailingIcon |
string |
"arrow-up-right" |
Set to "" to remove. |
newTab |
boolean |
false |
target=_blank with rel=noopener and a hidden "opens in a new tab" note. |
badge |
string |
— |
Short pill text, e.g. "New". |
disabled |
boolean |
false |
Uses aria-disabled, so the control stays focusable and can explain itself. |
disabledReason |
string |
— |
Announced when a disabled control is focused. |
loading |
boolean |
false |
Spinner replaces the leading icon; the label and width stay put. |
count |
number |
— |
Click count shown beside the label. |
rel |
string |
— |
Extra rel tokens, e.g. "sponsored nofollow". |
brand |
string |
— |
Service slug, e.g. "spotify". Supplies the mark and, with brandStyle, the colour. |
brandStyle |
string |
"mark" |
How much of the service's identity to spend. mark is monochrome and changes nothing. One of: mark, tint, outline, solid |
image |
string |
— |
Thumbnail URL. |
imageAlt |
string |
"" |
Alt text; empty because a thumbnail beside its own title is decorative. |
layout |
string |
"row" |
How the children are arranged. One of: row, stacked |
meta |
string |
— |
Small eyebrow above the title, e.g. "Essay · 12 min". |
Accessibility
- The anchor wraps the title only and is stretched over the card, so the card is one tab stop and the link's name is the title.
- The focus ring is drawn on the card via :has(), so the indicator matches the actual pointer target.
Design tokens
--lb-r-lg --lb-surface --lb-outline --lb-elev-raised
Links
Expandable Section
A single disclosure: a trigger and a panel that opens in place.
expandable-sectioncollapsedexpandedhoverfocus
Preview
Usage
Props
| Prop | Type | Default | Description |
titlerequired |
string |
— |
Trigger text. |
headingLevel |
number |
3 |
2–6. |
open |
boolean |
false |
Whether it starts expanded. |
summary |
string |
— |
Line under the title while collapsed. |
items |
array |
[] |
Links rendered inside the panel. |
text |
string |
— |
Plain text panel content, used when items is empty. |
variant |
string |
"bordered" |
Visual treatment. All variants share one behaviour and one API. One of: bordered, flush |
Accessibility
- The trigger is a button inside a heading, so the panel is a sibling of the heading — the open state lives on the item, not the trigger.
- The panel animates grid-template-rows 0fr → 1fr, which needs no measured height and does not jank.
- hidden="until-found" lets find-in-page open the panel, and is dropped a frame before the animation so the panel is measurable.
Design tokens
--lb-r-md --lb-outline --lb-scrim --lb-dur-normal
Links
Featured Link
The one link the page exists for. Larger, with an image and an eyebrow.
featured-linkdefaulthoverfocusloading
Preview
Usage
Props
| Prop | Type | Default | Description |
labelrequired |
string |
— |
The visible text. Says what happens, in the reader's words. |
hrefrequired |
string |
— |
Destination. javascript: and non-image data: URLs are rejected. |
description |
string |
— |
One supporting line beneath the label. |
icon |
string |
— |
Kit glyph name, or a Simple Icons slug for a brand mark. |
trailingIcon |
string |
"arrow-up-right" |
Set to "" to remove. |
newTab |
boolean |
false |
target=_blank with rel=noopener and a hidden "opens in a new tab" note. |
badge |
string |
— |
Short pill text, e.g. "New". |
disabled |
boolean |
false |
Uses aria-disabled, so the control stays focusable and can explain itself. |
disabledReason |
string |
— |
Announced when a disabled control is focused. |
loading |
boolean |
false |
Spinner replaces the leading icon; the label and width stay put. |
count |
number |
— |
Click count shown beside the label. |
rel |
string |
— |
Extra rel tokens, e.g. "sponsored nofollow". |
brand |
string |
— |
Service slug, e.g. "spotify". Supplies the mark and, with brandStyle, the colour. |
brandStyle |
string |
"mark" |
How much of the service's identity to spend. mark is monochrome and changes nothing. One of: mark, tint, outline, solid |
image |
string |
— |
Hero image URL. |
imageAlt |
string |
"" |
Alt text for the hero image. |
eyebrow |
string |
"Featured" |
Small label above the title. |
cta |
string |
— |
Button text. Defaults to the label. |
Accessibility
- One featured link per page — two competing primary actions is the pattern this component exists to prevent.
- The eyebrow is framing; the heading carries the name.
Design tokens
--lb-r-lg --lb-elev-raised --lb-primary
Preview
Usage
Props
| Prop | Type | Default | Description |
title |
string |
— |
Group heading. |
headingLevel |
number |
2 |
2–6, so the group sits at the right depth in the host outline. |
items |
array |
[] |
[{ label, href, icon, description, badge, newTab }] |
variant |
string |
"secondary-button" |
Which link component renders each item. |
layout |
string |
"stack" |
How the children are arranged. One of: stack, grid |
loading |
boolean |
false |
Renders the skeleton state, preserving the final layout exactly so nothing shifts on resolve. |
emptyTitle |
string |
"No links yet" |
Title shown when the list is empty. |
emptyBody |
string |
"Add your first link to see it here." |
One sentence saying what to do about it. |
Accessibility
- Rendered as a real list, so the number of links is announced.
- The heading is tied to the list with aria-labelledby rather than sitting loose above it.
Design tokens
--lb-s-3 --lb-type-mono-xs
Links
Icon Link
A square, label-less control for dense rows. The label ships as an accessible name either way.
icon-linkdefaulthoveractivefocus
Preview
Usage
Props
| Prop | Type | Default | Description |
hrefrequired |
string |
— |
Destination. |
labelrequired |
string |
— |
The accessible name. Never omitted, even though it is not painted. |
iconrequired |
string |
— |
Kit glyph name or Simple Icons slug. |
size |
string |
"md" |
Control size. One of: sm, md |
variant |
string |
"outline" |
Visual treatment. All variants share one behaviour and one API. One of: outline, ghost, filled |
newTab |
boolean |
true |
Opens in a new tab. |
brand |
string |
— |
Service slug. Defaults to the icon when that names a known service. |
brandStyle |
string |
"mark" |
How much of the service's identity to spend. One of: mark, tint, outline, solid |
Accessibility
- aria-label is mandatory — an icon-only control with no name is unusable on a screen reader.
- A tooltip is never substituted for the label, and the target is 44px at every breakpoint.
Design tokens
--lb-control-h --lb-surface --lb-outline-strong
Links
Pinned Link
A link held at the top of the list, marked as pinned.
pinned-linkdefaulthoverfocusloadingdisabled
Preview
Usage
Props
| Prop | Type | Default | Description |
labelrequired |
string |
— |
The visible text. Says what happens, in the reader's words. |
hrefrequired |
string |
— |
Destination. javascript: and non-image data: URLs are rejected. |
description |
string |
— |
One supporting line beneath the label. |
icon |
string |
— |
Kit glyph name, or a Simple Icons slug for a brand mark. |
trailingIcon |
string |
"arrow-up-right" |
Set to "" to remove. |
newTab |
boolean |
false |
target=_blank with rel=noopener and a hidden "opens in a new tab" note. |
badge |
string |
— |
Short pill text, e.g. "New". |
disabled |
boolean |
false |
Uses aria-disabled, so the control stays focusable and can explain itself. |
disabledReason |
string |
— |
Announced when a disabled control is focused. |
loading |
boolean |
false |
Spinner replaces the leading icon; the label and width stay put. |
count |
number |
— |
Click count shown beside the label. |
rel |
string |
— |
Extra rel tokens, e.g. "sponsored nofollow". |
brand |
string |
— |
Service slug, e.g. "spotify". Supplies the mark and, with brandStyle, the colour. |
brandStyle |
string |
"mark" |
How much of the service's identity to spend. mark is monochrome and changes nothing. One of: mark, tint, outline, solid |
pinLabel |
string |
"Pinned" |
Text in the pin marker. |
Accessibility
- The pin marker is a labelled pill, not a bare icon, so the reason this link is first is announced.
- Pinning is visual order only — it never moves the link away from reading order.
Design tokens
--lb-surface-2 --lb-outline-strong
Links
Recent Links
The latest few things published, newest first, each with a date.
recent-linksdefaultloadingempty
Preview
Usage
Props
| Prop | Type | Default | Description |
title |
string |
"Recent" |
Section heading. |
items |
array |
[] |
[{ label, href, date, meta }] |
limit |
number |
5 |
Maximum entries to show. |
relative |
boolean |
true |
Show "3 days ago" rather than a calendar date. |
moreLabel |
string |
— |
Shows a trailing link when set. |
moreHref |
string |
— |
Where the trailing link goes. |
loading |
boolean |
false |
Renders the skeleton state, preserving the final layout exactly so nothing shifts on resolve. |
Accessibility
- Dates ship as <time datetime> so the exact value is machine-readable even when the display is relative.
- The list is ordered, because recency is the information the order carries.
Design tokens
--lb-outline-soft --lb-on-surface-3
Links
Rich Link Preview
An unfurled link: image, source, title and excerpt. Metadata is supplied, never fetched.
rich-link-previewdefaulthoverfocusloadingerror
Preview
Usage
Props
| Prop | Type | Default | Description |
hrefrequired |
string |
— |
Destination. |
titlerequired |
string |
— |
The linked page's title. |
site |
string |
— |
Publication or domain. Derived from the URL when omitted. |
excerpt |
string |
— |
Two lines of the linked page. |
image |
string |
— |
Preview image URL. |
favicon |
string |
— |
Simple Icons slug for the source. |
published |
string |
— |
ISO date. |
readingTime |
string |
— |
e.g. "12 min read". |
loading |
boolean |
false |
Renders the skeleton state, preserving the final layout exactly so nothing shifts on resolve. |
error |
boolean |
false |
Renders the region-scope error state with a retry, leaving the rest of the page usable. |
newTab |
boolean |
true |
Opens in a new tab. |
Accessibility
- The preview image is decorative — the title, source and excerpt carry everything it shows.
- The error state is region-scope: this block fails and the rest of the page stays usable.
Design tokens
--lb-surface --lb-outline --lb-r-lg