Divider
A hairline with an optional label. The only line the system draws between siblings.
Examples
Divider
or
Between groups in a row
Anatomy
hr | A bare 1px hairline, no border. |
.divider | A short label centred between two hairlines that fill the remaining width. |
.cluster > hr | Stands up: a short vertical hairline between groups in a row, as in a toolbar. |
Accessibility
<hr>is announced as a separator. Use it when the break is in the content, not only for decoration.- In a row, give the
<hr>aria-orientation="vertical"so it is announced the way it is drawn. .divideris plain text between two drawn lines; its label is read in sequence, so it must make sense read aloud ("or").