# Day Separator

> 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.

Component · Foundations · Halo kit · [Live page](https://ui.twentyfirst.media/halo/components/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.

## Example

```tsx
import { DaySeparator } from "@twentyfirstmedia/halo";

const NOW = "2026-04-16T12:00:00";

export default function Preview() {
  return (
    <div className="tf-panel" style={{ gap: 8 }}>
      <DaySeparator date="2026-04-13T09:00:00" now={NOW} />
      <p className="tf-card-desc">Monday's messages …</p>
      <DaySeparator date="2026-04-15T18:20:00" now={NOW} />
      <p className="tf-card-desc">Yesterday's messages …</p>
      <DaySeparator date="2026-04-16T08:05:00" now={NOW} />
      <p className="tf-card-desc">This morning's messages …</p>
      <DaySeparator label="New messages" tone="accent" />
      <p className="tf-card-desc">Unread messages …</p>
    </div>
  );
}
```

## 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. |
