# Generic

A flexible single-column section that stacks an optional icon, pre-heading, heading, post-heading, image or video, body, links and extra copy. Use it for simple one-off content that no purpose-built component covers.

## Screenshots

| Variant | Preview |
|---------|---------|
| Default | ![Default](../screenshots/components/generic-default.png) |
| Navy | ![Navy](../screenshots/components/generic-navy.png) |

## What it looks like

A full-width section with the standard section padding above and below. Everything sits in one column across the page measure and stacks vertically in a fixed order: icon, pre-heading, heading, post-heading, visual, body, links, additional copy. Any element left empty is skipped and the rest close up. In the screenshots the visual shows as a placeholder image with a single link below it, on a Navy section.

## Typography

- **Pre-heading and post-heading:** `p2`.
- **Heading:** `h1` when this is the first block on the page, otherwise `h2`. It renders as `<h1>` for the first block and `<h2>` otherwise.
- **Body and additional copy:** standard rich text styling.

## Colours

`backgroundColour` and `textColour` apply to the whole section. With only a background set, text switches to the palette's contrasting colour. Link colour follows `textColour` if set; otherwise links are White on a dark background and Navy on a light or empty one.

**Valid values (both fields):** Navy, Dark Slate, Slate, Sea Glass, Cornflower, Ether, Mist, White, Graphite, Ink, Sky.

## Used fields

| Field | Type | Effect when set | Effect when empty/removed |
|-------|------|-----------------|---------------------------|
| `icon` | Media | Small icon at the top of the column | No icon |
| `preHeading` | Symbol | Short line above the heading (`p2`) | Not shown |
| `heading` | Symbol | Main title | Not shown |
| `postHeading` | Symbol | Line below the heading (`p2`) | Not shown |
| `visual` | Media | Image or video, sized to the column | Not shown |
| `body` | RichText | Main copy | Not shown |
| `links` | Array | Row of links below the body | Not shown |
| `additionalCopy` | RichText | Second block of copy after the links | Not shown |
| `anchor` | Symbol | Lets other links jump to this section | No visible effect when empty |
| `cmsLabel` | Symbol | Internal label, also used in link tracking | No visible effect when empty |
| `backgroundColour` | Symbol | Fills the section | No fill |
| `textColour` | Symbol | Text and link colour | Contrasting colour for the background, or inherited |

## Behaviour

- First block on the page: the heading uses `h1` and renders as `<h1>`. Later blocks use `h2`.
- The first visual on the page loads with priority; later ones load as they come into view.
- The visual can have a separate mobile version.

## Impact of content changes

| Change | Result |
|--------|--------|
| Add or remove heading, pre-heading or post-heading | That line appears or disappears; the stack closes up |
| Add or remove visual | Image or video appears between post-heading and body |
| Add or remove links | Link row appears or disappears below the body |
| Set a dark `backgroundColour` | Section fills and text and links turn light |
| Move block to top of page | Heading enlarges to `h1` |
