# Scorecard

> A round of golf: par and strokes for each hole in the usual marks (circle for a birdie, double circle for an eagle, square for a bogey, double square for worse), putts, Out, In and the total against par.

Component · Connectors · Halo kit · [Live page](https://ui.twentyfirst.media/halo/components/Scorecard/)

A round of golf: par and strokes for each hole in the usual marks (circle for a birdie, double
circle for an eagle, square for a bogey, double square for worse), putts, Out, In and the total
against par. Screen readers hear each score in words ("2, Birdie"); narrow screens scroll the table.

## Example

```tsx
import { Scorecard } from "@twentyfirstmedia/halo";

const PAR = [4, 4, 3, 5, 4, 4, 3, 4, 5, 4, 3, 4, 5, 4, 4, 3, 4, 5];
const STROKES = [5, 4, 3, 6, 4, 5, 2, 4, 5, 6, 3, 4, 4, 5, 4, 4, 5, 6];
const PUTTS = [2, 2, 1, 2, 2, 2, 1, 2, 2, 3, 2, 2, 1, 2, 2, 2, 2, 2];

export default function Preview() {
  return (
    <div style={{ maxWidth: 760 }}>
      <Scorecard
        course="GC Hamburg-Walddörfer"
        date={new Date(2026, 10, 13)}
        tee="Yellow · CR 71.2 / SR 128"
        holes={PAR.map((par, i) => ({ par, strokes: STROKES[i], putts: PUTTS[i] }))}
      />
    </div>
  );
}
```

## Props

### Scorecard

| Prop | Type | Notes |
| --- | --- | --- |
| `course` | `string` | Required |
| `date?` | `Date \| string \| number` |  |
| `holes` | `GolfHole[]` | 9 or 18 holes. |
| `tee?` | `string` | Tee and course rating: "Yellow · CR 71.2 / SR 128". |
| `service?` | `ServiceRef` |  |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
