# Due date

When a thing is due, in words and quiet ink, and in the danger ink once it is late.

Live variants: https://design.arcadia.is/components/due-date

```tsx
import { DueDate } from "@arcadia/ui";
```

```tsx
import { DueDate } from "@arcadia/ui";

<div {...stylex.props(styles.list)}>
  <DueDate day="2026-11-21" today={TODAY} locale="en-US" />
  <DueDate day="2026-11-18" today={TODAY} locale="en-US" />
  <DueDate day="2026-11-14" today={TODAY} locale="en-US" late />
  <DueDate day="2027-01-05" today={TODAY} locale="en-US" />
</div>
```

## Accessibility

The day is read as its words, and "late" after them while late. With `iconOnly` the glyph is an image named the same way ("Nov 14, late").

## API reference

### DueDate

- `day` (`Day`, required): The day it is due, `YYYY-MM-DD`.
- `today` (`Day`): The day it is, given by the product. Default: the machine's own day.
- `locale` (`string`): The reader's locale for the day's words. Default: the platform's.
- `late` (`boolean`, default `false`): The product's call (the day is before today and the thing is not done): both in the danger ink, and "late" said after the day.
- `done` (`boolean`, default `false`): The thing is done: never late, whatever the day.
- `iconOnly` (`boolean`, default `false`): The glyph alone, in its ink, named by the day.
- `rootStyle` (`RootStyle`): Typed StyleX override: where it sits.

Rest props go to `<span>` props.
