Components

Profile

10 components. Every one is themeable, keyboard operable, and configurable by data attribute, JSON or JavaScript.

Profile

Availability

Whether someone is taking work, with an optional next opening and a way to enquire.

availabilitydefault

Preview

Available
Booked
Pill

Usage

Props

PropTypeDefaultDescription
state string "available"
One of: available, limited, booked
label string — Overrides the default wording.
detail string — e.g. "Two project slots for Q3".
nextOpening string — ISO date of the next opening.
ctaLabel string — Action text. The action is hidden without it.
ctaHref string — Where the action goes.
variant string "card" Visual treatment. All variants share one behaviour and one API.
One of: card, pill

Accessibility

  • State is carried by the dot, the label and the wording together — never by hue alone.
  • The card is a region with a real heading order, so it can sit anywhere on the page.

Design tokens

--lb-success --lb-warning --lb-r-lg

Profile

Avatar

A person or brand mark. Falls back to initials, never to a generic silhouette.

avatardefaultloadingerror

Preview

With photo
Initials fallback
With presence
Loading

Usage

Props

PropTypeDefaultDescription
src string — Image URL.
alt string — Alt text. Defaults to the name; pass "" when the name is already visible beside it.
name string — Used for the initials fallback and the default alt text.
size string "lg" 28 / 36 / 48 / 64 / 88px.
One of: xs, sm, md, lg, xl
shape string "circle"
One of: circle, rounded
ring boolean false Surface ring, for an avatar overlapping a cover image.
href string — Makes the avatar a link.
status string — Presence dot, always paired with a hidden label.
One of: online, away, busy, offline
statusLabel string — Overrides the default presence wording.
loading boolean false Renders the skeleton state, preserving the final layout exactly so nothing shifts on resolve.

Accessibility

  • A broken image URL swaps to initials rather than leaving a broken-image glyph.
  • Presence is never colour alone — the dot ships with a visually hidden label.

Design tokens

--lb-surface-2 --lb-surface-3 --lb-outline --lb-r-full --lb-success

Profile

Bio

A short description with an optional expand control for long text.

biodefaultexpandedempty

Preview

Short
Expandable

Usage

Props

PropTypeDefaultDescription
textrequired string — The description itself.
lines number 0 Clamp to this many lines. 0 shows everything.
expandable boolean false Adds a Show more control. Requires lines.
align string "center" Horizontal alignment of the block's content.
One of: center, left
size string "sm" Control size.
One of: sm, md

Accessibility

  • Clamping is visual only — the full text stays in the accessible tree, so nothing is hidden from a screen reader.
  • The control is a button with aria-expanded, and its label changes with the state.

Design tokens

--lb-measure --lb-on-surface-2

Profile

Cover Banner

A full-bleed header image or flat panel behind the profile.

cover-bannerdefaultloading

Preview

Image
With caption
Flat panel

Usage

Props

PropTypeDefaultDescription
src string — Image URL. Omit for a flat panel.
alt string "" Empty by default — a cover is decorative unless it carries information.
ratio string "16 / 6" CSS aspect-ratio. Media uses a ratio, never a fixed height, so nothing shifts as it loads.
position string "center" CSS object-position.
overlay boolean false Scrim wash for text placed over the image.
caption string — Overlaid caption. Requires overlay.
loading boolean false Renders the skeleton state, preserving the final layout exactly so nothing shifts on resolve.

Accessibility

  • A decorative cover takes alt="" so it is skipped rather than announced as a filename.
  • Caption ink sits on a scrim that holds 4.5:1 regardless of the photograph behind it.

Design tokens

--lb-surface-3 --lb-r-lg

Profile

Location

Where someone is, optionally with their local time and a map link.

locationdefault

Preview

Static
With local time
Linked

Usage

Props

PropTypeDefaultDescription
textrequired string — City, region or venue.
href string — Map link. Omit to render as static text.
timezone string — IANA zone, e.g. Europe/Lisbon. Shows local time beside the place.
size string "xs" Control size.
One of: xs, sm

Accessibility

  • The pin is decorative; the place name carries the meaning.
  • The local-time interval is cleared on destroy, so a removed component leaves no timer behind.

Design tokens

--lb-on-surface-2

Profile

Profile Header

The identity block: cover, avatar, name, handle, bio and meta in one composition.

profile-headerdefaultloading

Preview

Full header

Usage

Props

PropTypeDefaultDescription
namerequired string — Display name. Renders as the page's h1 by default.
handle string — @handle or short URL.
avatar string — Avatar image URL.
cover string — Cover image URL.
bio string — One or two sentences.
verified boolean false Shows the verification mark beside the name.
verifiedLabel string "Verified account" Accessible name for the mark.
location string — City, region or venue.
pronouns string — e.g. she/her.
availability string — Adds an availability line to the meta row.
One of: available, limited, booked
align string "center" Horizontal alignment of the block's content.
One of: center, left
headingLevel number 1 1–4. Use 2 when the host page already owns the h1.
loading boolean false Renders the skeleton state, preserving the final layout exactly so nothing shifts on resolve.

Accessibility

  • Emits exactly one heading, at the level you specify, so levels never skip.
  • Meta is a real list, so the number of facts is announced rather than read as a run-on line.

Design tokens

--lb-type-h2 --lb-on-surface-2 --lb-s-4

Profile

Pronouns

How to refer to someone.

pronounsdefault

Preview

Text
Pill

Usage

Props

PropTypeDefaultDescription
valuerequired string — e.g. she/her, they/them.
variant string "text" Visual treatment. All variants share one behaviour and one API.
One of: text, pill

Accessibility

  • Prefixed with a visually hidden "Pronouns:" so the value is not announced as an orphan fragment.
  • Static, so it is a span rather than a control — nothing here is pressable.

Design tokens

--lb-on-surface-3

Profile

Social Proof

Who else is here — a stacked avatar group with a count, or a row of figures.

social-proofdefaultloadingempty

Preview

Avatar group
Stats

Usage

Props

PropTypeDefaultDescription
variant string "avatars" Visual treatment. All variants share one behaviour and one API.
One of: avatars, stats
avatars array [] Image URLs, or { src, name } objects.
count number — Total people. Renders as "+N" past the shown avatars.
text string — The sentence beside the group, e.g. "Joined by 2,400 readers".
max number 4 How many faces to show before the counter chip.
stats array [] [{ value, label }] for the stats variant.
loading boolean false Renders the skeleton state, preserving the final layout exactly so nothing shifts on resolve.

Accessibility

  • Face images are decorative and aria-hidden; the sentence beside them is the accessible content.
  • Figures are a definition list, so each number is bound to its label rather than floating free.

Design tokens

--lb-surface --lb-outline --lb-type-h3

Profile

Status Indicator

What someone is doing right now: a dot, a label, and an optional expiry.

status-indicatordefault

Preview

Online
Busy with note
Custom

Usage

Props

PropTypeDefaultDescription
status string "online"
One of: online, away, busy, offline, custom
label string — Overrides the wording. Required when status is custom.
note string — Secondary line, e.g. "back Monday".
until string — ISO date/time, rendered as a relative expiry.
live boolean false Announces changes politely when the status is updated.

Accessibility

  • Colour is never the signal — the dot is always paired with its label (WCAG 1.4.1).
  • With live on, the region is role="status" so a change is announced once, politely.

Design tokens

--lb-success --lb-warning --lb-error

Profile

Verified Badge

A confirmation mark for an identity that has been checked.

verified-badgedefault

Preview

Mark only
With label

Usage

Props

PropTypeDefaultDescription
label string "Verified" Visible when showLabel is on; otherwise the accessible name.
showLabel boolean false Paints the label beside the mark.
detail string — What was verified, e.g. "Identity checked 4 March 2026".
size string "md" Control size.
One of: sm, md

Accessibility

  • Never a bare glyph: the mark always carries a text label, visible or hidden.
  • The detail is repeated in the accessible name rather than being hover-only.

Design tokens

--lb-primary --lb-type-label-sm

Navigation

Start here

Foundations

Components

See it

On this page