Skip to main content
brickwork
GitHub Log in Get started
Display
Theme
Density
Direction
Brand

Documentation

Divider

A simple structural separator between related content groups.

All components Component Brickwork 4.3.1

Try it

Labelled section break

Open full-page preview

A start-aligned strong divider.

Advanced settings
Use to distinguish adjacent sections where spacing alone is insufficient.

Use it

Working invocation

This code creates the configuration shown above. Copy the template and the required Python context together.

templates/your_app/component.html

Django template

{% include "brickwork/components/_divider.html" with label=label label_align=label_align tone=tone %}

your_app/views.py

Python

context = {'label': 'Advanced settings', 'label_align': 'start', 'tone': 'strong'}

Guide

Add it to your project

  1. Include the partial at the semantic boundary.
  2. Choose orientation only when the layout requires a vertical rule.

View this component's source for the installed release

Options

Public API

Option Type Default Required Description
label str Not set No Optional text carried by the rule. Constraint: Use concise visible text that identifies the control or measurement.
label_align str center No Label placement. Allowed: center, start. Constraint: Allowed values: `center`, `start`.
tone str muted No Hairline contrast. Allowed: muted, strong. Constraint: Allowed values: `muted`, `strong`.
spacing str md No Vertical rhythm. Allowed: sm, md, lg. Constraint: Allowed values: `sm`, `md`, `lg`.

Behaviour

Accessibility and responsive behaviour

Accessibility
Uses separator semantics when labelled; do not use it as the only way to communicate a meaningful section boundary.
Responsive
No breakpoint switch.
Without JavaScript
Static HTML only.

Need help?

Troubleshooting

Contract check: label_align ("center" default | "start"): only meaningful with label.

Set `label_align` only when a divider has a label; it has no effect on an unlabelled rule.

Documentation