Skip to main content

Design system components

TeamBlock

Centred team grid of member cards: an Avatar, the name and the role, plus avatar-size, column and spacing knobs.

Status: stable. Group: structure. Markdown version: /design-system/components/team-block.md

When to use

TeamBlock renders a team/people grid: member cards with an Avatar (photo or initials), name and role, plus avatarSize, column and spacing knobs, under a section title and optional description. sectionTitle defaults to the translated "Team" label (projectTeamLabel); pass an empty string to omit the heading. Rows with fewer members than columns stay centred. A member with link renders as an anchor that keeps the column sizing, opens in a new tab and ends its name with the translated "(opens in a new tab)". No production page renders TeamBlock today; HelsinkiDesignSystemPage imports it without rendering it.

When not to use

The contract records no forbidden uses.

Look-alikes

The contract names no look-alike with a deciding condition.

Props

TeamBlock props
PropTypeDefaultDescriptionRequired
membersTeamMember[]noneArray of team members to display.Yes
sectionTitlestringnoneSection title. Defaults to the translated "Team" label (projectTeamLabel); pass "" to omit it.No
descriptionReact.ReactNodenoneOptional description or introduction text.No
columns2 | 3 | 4 | 5 | 65Number of columns for desktop layout (2-6)No
backgroundColor"transparent" | "light" | "white"transparentBackground color variant.No
maxWidth"sm" | "md" | "lg" | "full" | "xl"lgMaximum width constraint.No
spacing"compact" | "default" | "comfortable" | "spacious"comfortableSpacing variant.No
classNamestring""Additional CSS class.No
as"article" | "div" | "section"sectionSemantic HTML element to use.No
ariaLabelstringnoneAccessible label for the section; falls back to sectionTitle.No
avatarSizestringnoneAvatar diameter as any CSS length (default 7rem)No

Variants

  • Allowed columns values: 2, 3, 4, 5, 6 (default 5).
  • Allowed backgroundColor values: transparent, light, white (default transparent).
  • Allowed maxWidth values: sm, md, lg, full, xl (default lg).
  • Available spacings: compact, default, comfortable, spacious (default comfortable).
  • Allowed as values: article, div, section (default section).

Invalid combinations

The contract records no invalid combinations.

Keyboard

The contract records no keyboard interaction.

Rules

Every item under When not to use is a MUST NOT. MUST and SHOULD follow RFC 2119.

TeamBlock rules
LevelRuleHow it is checked
MUSTARIA: The section is named by aria-label from ariaLabel, falling back to sectionTitle (default: the translated projectTeamLabel, "Team" in English).Not yet verified: no evidence record. WCAG 4.1.2.
MUSTARIA: Avatars render with alt="" because each member name follows as an h3.Not yet verified: no evidence record. WCAG 4.1.2.
MUSTRequired stories produce no axe violations at the configured severity.Automated by npm run test:stories:matrix:ci. WCAG 2.5.8.
MUSTThe accessibility tree (role, name, state) matches the committed snapshot for every required story.Automated by npm run test:stories:matrix:ci. WCAG 1.3.1, 4.1.2.
MUSTThe component remains legible and operable under a real browser forced-colors: active pass.Automated by npm run test:stories:hc.
MUSTA human completed an end-to-end accessibility review of this component.Manual review, last on 2026-11-04.
MUST NOTMaintainers: Do not bypass design tokens or skip forced-colors verification at beta.Release review; not machine-checked.

Install and import

  • In-repo only. TeamBlock is not exported from @digitaltableteur/react, so there is no public import path.