Day Separator
Foundations · DaySeparator
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, April 13
Monday's messages …
Yesterday
Yesterday's messages …
Today
This morning's messages …
New messages
Unread messages …
Props
DaySeparator
| Prop | Type | Notes |
|---|---|---|
date? | Date | string | number | The day: shows "Today", "Yesterday" or the weekday and date in the provider's locale. |
label? | string | Text instead of the date (e.g. "New messages"). |
tone? | "neutral" | "accent" | "accent" for the "new messages" line (the signal colour). |
now? | Date | string | number | What counts as today (default now), for stable tests and server rendering. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |