# Spacer line thin

A horizontal divider rule inside a 1px high band, centred vertically. Use it to separate sections. This is the bare thin variant.

## Screenshots

| Variant | Preview |
|---------|---------|
| Default | ![Default](../screenshots/components/spacer-line-thin-default.png) |

## What it looks like

A band only 1px high that is just a 1px rule. The rule is held to the page content width, not the full browser width. There is no space above or below it, so it sits directly between neighbouring blocks. It is hidden from screen readers.

## Typography

None. The block contains no text.

## Colours

- Section-wide: `backgroundColour` fills the band and `textColour` sets the rule colour (the rule follows the text colour). Valid values for both: Navy, Dark Slate, Slate, Sea Glass, Cornflower, Ether, Mist, White, Graphite, Ink, Sky.
- If `backgroundColour` is empty, the band paints the previous block's background on its top half and the next block's background on its bottom half, so the line sits on the seam between two coloured sections. If both are the same colour it is one fill. If it is the last block, the next side uses the footer colour. If neither neighbour has a colour, it is left transparent.
- If `backgroundColour` is set, it is used as the fill and the neighbour matching is skipped.

## Used fields

| Field | Type | Effect when set | Effect when empty/removed |
|-------|------|-----------------|---------------------------|
| `cmsLabel` | Symbol | Internal name for finding the entry in Contentful | No visible effect |
| `componentType` | Symbol | Identifies the block as "Spacer line thin" | N/A |
| `id` | Symbol | Entry id used for preview | No visible effect |

The block has no content fields. `backgroundColour` and `textColour` are still read from the entry by the section wrapper (see Colours).

## Behaviour

- Family: Spacer line (fancy), Spacer line standard (plain) and Spacer line thin differ only in the rule. This type: 1px rule at page content width; the whole block is 1px high.
- Height options: Spacer line and Spacer line standard come in 32, 64, 128 and 256px; Spacer line thin has a single 1px size.
- Neighbour-aware background matching (see Colours) is what distinguishes these from plain Spacers.

## Impact of content changes

- Set `backgroundColour` -> the band uses that colour and stops matching its neighbours.
- Clear `backgroundColour` -> the band blends the colours of the blocks above and below.
- Set `textColour` -> the rule changes colour.
- Moving the block next to differently coloured sections changes the top and bottom halves of the band (when no background is set).
- To change the gap size or rule style, switch to a different Spacer line type.
