Skip to content
Twentyfirst UIHalo

Day Separator

Foundations · DaySeparator

View as Markdown

A labelled line between the days of a thread, a feed or a list: "Today", "Yesterday" or the weekday and date in the provider's locale (UIProvider locale="de-DE" writes "Montag, 13. April"). With label and tone="accent" it is the "New messages" line above the first unread item.

Monday's messages …

Yesterday's messages …

This morning's messages …

Unread messages …

Props

DaySeparator

PropTypeNotes
date?Date | string | numberThe day: shows "Today", "Yesterday" or the weekday and date in the provider's locale.
label?stringText instead of the date (e.g. "New messages").
tone?"neutral" | "accent""accent" for the "new messages" line (the signal colour).
now?Date | string | numberWhat counts as today (default now), for stable tests and server rendering.
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.