LocationCard
Card variant for displaying a single office or service location (address, hours, map link). Visual sibling of Card with the location-specific slot order baked in.
Status: beta. Group: display. Markdown version: /design-system/components/location-card.md
When to use
Contact-page card for a single location: address, open hours, and contact links. Composes OpenHours.
When not to use
- Do not use as a generic 'card with an icon and label'; that is
Card. - Do not stack two
LocationCards vertically with no spacing; they need rhythm viaGridorStack.
Look-alikes
- Card: Do not use as a generic 'card with an icon and label'; that is
Card.
Props
| Prop | Type | Default | Description | Required |
|---|---|---|---|---|
officeName | string | none | Office name heading. | Yes |
address | string[] | none | Address lines. | Yes |
email | string | none | Contact email. | No |
phone | string | none | Contact phone. | No |
variant | "default" | "bordered" | "elevated" | default | Card variant. | No |
className | string | none | Custom className. | No |
Variants
- Available variants:
default,elevated,bordered(defaultdefault).
Invalid combinations
The contract records no invalid combinations.
Keyboard
| Key | Behaviour |
|---|---|
| Tab | Focuses the embedded action (map link, contact CTA) in order. |
Rules
Every item under When not to use is a MUST NOT. MUST and SHOULD follow RFC 2119.
| Level | Rule | How it is checked |
|---|---|---|
| MUST | ARIA: Renders an <article> so the whole card is announced as a region. | Not yet verified: no evidence record. WCAG 4.1.2. |
| MUST | ARIA: Address content sits inside a real <address> element so screen readers identify it as contact information. | Not yet verified: no evidence record. WCAG 4.1.2. |
| MUST | Required stories produce no axe violations at the configured severity. | Automated by npm run test:stories:matrix:ci. WCAG 2.5.8. |
| MUST | The 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. |
| MUST | The component remains legible and operable under a real browser forced-colors: active pass. | Automated by npm run test:stories:hc. |
| MUST | Every documented keyboard interaction works as specified. | Not yet verified: no evidence record. WCAG 2.1.1, 2.1.2. |
| MUST | A human completed an end-to-end accessibility review of this component. | Manual review, last on 2026-05-28. |
Install and import
- In-repo only. LocationCard is not exported from
@digitaltableteur/react, so there is no public import path.
Links
- Machine-readable contract (Design System Contract 1.0)
- Markdown version of this page
- Component index as JSON
- All components
- Source: The implementation lives in a private repository. This page, its Markdown twin and the contract are generated from it at build time and are the public source of truth.