Section Divider
A configurable vertical spacer with an optional horizontal line, used to separate sections on a page.
Section Divider
A simple spacing module that inserts vertical whitespace between page sections. Content editors choose from four height presets and can optionally display a horizontal divider line with a custom colour. The background is also configurable, making it useful as a visual break or colour transition between sections.
Adding in Strapi
- Go to Content Manager > Pages > select your page
- In the Design dynamic zone, click "Add component"
- Select "Dynamic" > "Section Divider"
- Choose a height preset, toggle the line visibility, and optionally set a line colour and background
- Save and publish
Fields Reference
| Field | Type | Required | Description |
|---|---|---|---|
| height | Enum | Yes | Vertical spacing size: SM, MD, LG, or XL. Defaults to MD. |
| showLine | Boolean | Yes | Whether to display a horizontal divider line. Defaults to false. |
| lineColor | Component | No | Colour of the divider line (only visible when showLine is true). |
| background | Component | No | Background styling for the spacer area (colour, gradient, or image). |
Variants
Default
A medium-height transparent spacer with no visible line. Provides clean vertical separation between adjacent sections.
WithLine
Adds a horizontal line across the centre of the spacer. The line colour is configurable -- use it to create a subtle visual break that matches your page's colour scheme.
LargeSize
An extra-large spacer that creates a significant visual gap between sections. Useful for separating major content areas or creating breathing room on long pages.
Tips
- Use
SMfor tight spacing between related sections (e.g. between a heading module and a content module). - Use
MD(the default) as a general-purpose separator between most sections. - Use
LGorXLto create dramatic breathing room before hero sections or calls to action. - When using a line, set the
lineColorto match or complement your page's accent colour for a polished look. - Combine a coloured
backgroundwithshowLine: falseto create a colour-block transition between sections with different background colours.