# ServiceCard

> Service tile with icon, title, description, and optional link.

- Status: stable
- Group: marketing
- Page: https://www.digitaltableteur.com/design-system/components/service-card
- Contract: https://www.digitaltableteur.com/contracts/v1/ServiceCard.contract.json

## When to use

Tile for one service offering; icon, title, short description, optional link. Renders inside the ServicesSection pattern's grid.

## When not to use

- Do not use for a value or principle rather than a service offering; that is ValueCard. A service tile without href is supported.
- Do not place outside the ServicesSection grid; the tile is sized and gapped by that section.

## Look-alikes

- ValueCard: Do not use for a value or principle rather than a service offering; that is ValueCard. A service tile without href is supported.

## Props

| Prop | Type | Default | Description | Required |
| --- | --- | --- | --- | --- |
| `icon` | `ReactNode` | none | Icon element displayed at the top. | No |
| `title` | `string` | none | Card title. | Yes |
| `description` | `string` | none | Card description. | Yes |
| `href` | `string` | none | Optional link URL. | No |
| `variant` | `"minimal" \| "default" \| "bordered" \| "elevated"` | `default` | Card style variant. | No |
| `iconPosition` | `"left" \| "top"` | `top` | Icon position. | No |
| `className` | `string` | none | Custom className. | No |
| `donnyTarget` | `string` | none | Donny site action target id when this card is a spotlight anchor. | No |

## Variants

- Available variants: `default`, `elevated`, `minimal`, `bordered` (default `default`).
- Allowed `iconPosition` values: `left`, `top` (default `top`).

## 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.

| Level | Rule | How it is checked |
| --- | --- | --- |
| MUST | ARIA: With href the whole card is one link (Tab, Enter) whose accessible name is the title plus the description; without href it is a plain div with no interactive role. | Not yet verified: no evidence record. WCAG 4.1.2. |
| MUST | ARIA: The title is a fixed h3; there is no heading-level prop. | 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 | A human completed an end-to-end accessibility review of this component. | Manual review, last on 2026-11-04. |

## Install and import

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

## Links

- Machine-readable contract (Design System Contract 1.0): https://www.digitaltableteur.com/contracts/v1/ServiceCard.contract.json
- Markdown version of this page: https://www.digitaltableteur.com/design-system/components/service-card.md
- Component index as JSON: https://www.digitaltableteur.com/design-system/components.json
- All components: https://www.digitaltableteur.com/design-system/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.
