A NSW Government website
Search for a command to run...
Dividers create visual separation between sections in an email. They help break up dense layouts, improve scanability and guide the reader through the message in a clear, structured way.
Use dividers to separate distinct content blocks – for example:
Keep spacing above and below dividers consistent to maintain flow. Use dividers sparingly to avoid unnecessary visual clutter.
Dividers can be customised using properties for colour, orientation, size, and thickness. These options allow dividers to adapt to different layouts, backgrounds, and levels of emphasis while keeping within system standards.
Use the colour property to set a specific colour for components such as text, buttons or dividers. Always choose from the NSW Government digital palette to ensure consistency, accessibility and brand alignment.
Use the orientation property to control whether a divider displays horizontally or vertically. Horizontal dividers usually separate sections in email layouts. Vertical dividers can distinguish content in multi-column designs.
Use the size property to define the fixed length of the divider in pixels or as a percentage. By default, the divider spans 100% of its container. Adjust the size to suit your layout – for example, use shorter dividers to separate sub-sections or create balance in narrower columns.
Use the thickness property to set the width of the separator line. The default is 1px. For accessibility and visual clarity, ensure the separator contrasts with the background.
Prop | Type | Default | Description |
---|---|---|---|
colour | string | page.grey[200] | Sets the divider colour. Must be chosen from the NSW Government digital palette. |
orientation | string | horizontal | Defines whether the divider runs across (horizontal) or down (vertical) the layout. |
size | string | number | 100% | Specifies the length of the divider as a percentage or pixel value. Defaults to full width of container. |
thickness | number | 1 | Sets the thickness of the divider line in pixels. Default is 1px. |