Marker
The centred row `Bubble` and `Message` both refuse — a date divider, an unread rule, or a system note about the conversation rather than a line in it.
Marker
A system note about the conversation, not a line in it — prose that may carry a link, kept in the body face because it is still a sentence someone should be able to read normally.
Usage
import { Marker, MarkerContent, MarkerIcon } from '@oceanic-hub/brand-system'<Marker>
<MarkerIcon>…</MarkerIcon>
<MarkerContent>…</MarkerContent>
</Marker>Composition
Use the following composition to build a Marker:
Marker
├── MarkerIcon
└── MarkerContentEach variant reads as a different job, not a different look on one job. default is a
system note — prose that may carry a link, kept in the body face because a sentence about the
conversation is still a sentence. separator is a labelled divider — a date ("Yesterday"), an
unread rule — set in the house eyebrow face (Figtree, sentence case, untracked) because a divider is
metadata, not something anyone said. border keeps a status row in the same column as the
messages around it while still marking it off underneath — reach for it instead of separator
when the row should not read as a centred aside.
An unlabelled rule between two regions is still Separator — the only plain divider in the
system. Reach for Marker's separator variant only once there is a word to hang between the
two hairlines; a bare rule with nothing to say is the other component's job.
asChild turns the row into the control it sometimes needs to be — "Load 12 earlier messages" is
a button drawn as a divider, not a divider sitting next to one. The two hairlines survive the
swap because they are before/after pseudo-elements on the root, not sibling divs that
would be left behind.
A marker mid-stream reaches for a Spinner inside MarkerIcon, with role="status" on the
row itself — never a shimmering line of text, which would be another infinite animation, and
core-layer.md § Motion closes that scale at three named ones (spin, ping, the owned pulse)
with "no new infinite animation" as the standing refusal — the same argument that already keeps
Attachment's uploading title from shimmering.
Separator
Two hairlines and a label between them — a date, an unread count — set in the house eyebrow face because a divider is metadata, never a sentence. An unlabelled rule is Separator instead; this variant only exists once there is a word to hang between the lines.
Border
A hairline under the row, for a status line that still belongs in the same column as the messages around it — a muted reminder, a paused campaign — rather than a centred aside.
In progress
role="status" on the row plus a Spinner in MarkerIcon — the icon stays decorative, the row's text is what a screen reader announces once it changes. No shimmering text: that would be another infinite animation, and the motion scale refuses new ones.
A marker that is a control
asChild swaps the div for the single child and keeps every style, including the two hairlines — they are before/after pseudo-elements rather than sibling divs precisely so the rule survives the swap. A divider that loads earlier history is the case it exists for.
API Reference
See the Marker API page for every prop of every part, with types, defaults and the contract that pins them. It also documents markerVariants — exported alongside the parts, and signatures rather than props.