Skip to the page
Tactile UI

Kit part · Cards & panels · Sign in & sign up

Divider with label

A rule with a word set into it. The same engraved groove as the separator runs out to both sides of a printed word, broken where the word sits: “or” between two ways in, a date between two days of messages, the name of the section below. The word is real text in reading order; only the two grooves are drawn.

Element
<div class="tui-divider">
Needs
kit.css
Rules
divider-label.rules.md · 5
Finishes
Aluminium · Graphite · Oak · Walnut · Porcelain · Black · Daylight · Night · Paper · Phosphor · E-paper · AMOLED
Volumes
Tactile · Quiet
On this page
  1. Variants
  2. Every state, at once
  3. API
  4. Markup
  5. Accessibility
  6. How it’s built
  7. Rules
  8. Related parts

Seats open in 11 days. Want one email that morning?

Variants

or
Centred · or
Billing
At the start · --start
Continued
At the end · --end
A date as written · --plain

Billing

A heading
Sign in
or
Sign up
Upright · --vertical
Unreleased changes still waiting for a second pair of eyes
A long word wraps

Every state, at once

Both finishes, side by side. Hover, pressed and focus are forced with .is-hover, .is-down and .is-focus; checked and disabled are real.

Aluminium

PartCentredAt the startAt the endPlain
Divider
or
Billing
Continued
5 October

Graphite

PartCentredAt the startAt the endPlain
Divider
or
Billing
Continued
5 October

API

NameKindValuesWhat it does
div.tui-dividerelementtext or spanThe rule and its word: a flex row with a groove either side. Use a heading element where the word names a section.
.tui-divider__textclassoptionalThe word, when it needs an element of its own. It wraps and never pushes the rules off the plate.
--start · --endmodifiertui-divider--start, --endThe word at one end, with the rule running on from the other side only.
--plainmodifiertui-divider--plainThe word as it is written, not printed as a legend: for a date or a name that must keep its capitals.
--verticalmodifiertui-divider--verticalBetween two columns, with the word set upright between two upright rules.

Markup

<!-- Between two alternatives -->
<div class="tui-divider">or</div>

<!-- A day, with the rule running on from it -->
<div class="tui-divider tui-divider--start"><time datetime="2026-10-05">Monday 5 October</time></div>

<!-- A section's name: use a heading, so it is one -->
<h3 class="tui-divider tui-divider--start">Billing</h3>

Needs kit.css only, no script. How to install the kit.

Accessibility

  • The word is ordinary text in reading order, so a screen reader says “or” between the two choices and “Monday 5 October” before that day’s messages; the two grooves are drawn and say nothing.
  • It has no role of its own on purpose: a separator’s children are not read, which would hide the word. Where the rule names a section, make it a heading, and where it dates something, put a <time> inside.
  • The word is printed in the secondary ink (6:1 on the plate); the grooves are decoration, so their softness is no loss.
  • It takes no focus and nothing moves. A word that is too long for the row wraps, so there is no sideways scroll at 390px.

How it’s built

A flex row whose two pseudo-elements are the separator’s groove, each taking the space the word leaves. The word is set in the kit’s printed legend, or in plain type with --plain. Upright, the row becomes a column and the grooves turn to the upright cut with its lit wall on the right.

Rules

divider-label.rules.mdIn the brain

Put one word into a rule: “or” between two choices, a date between two days, or a section name above what follows.

5 rules in this file, with the foundations they rest on and the anti-patterns that break them. Full rules ship in the brain with the Pass.

Above

Below

Separator

An engraved rule: a fine groove cut into the plate, a hairline with a catch of light on its lower wall, or on its right wall when it stands upright. It divides without shouting, with no colour, no weight and nothing to read. Quiet keeps only the hairline. A real hr is a separator to a screen reader; one that only spaces things out says nothing.

Output

Panel

A face plate that groups what belongs together: a head, a rule, then the parts. Screws only on device-like panels.

Field

Text entry in a recess, the label printed above it, and a hint that says how to fix an error.