countdown
GraphCountdown
Time left until a date. After that it shows a short label you pass in.
freeze
Until New Year's. After that it says open.
00:00:00
until launch
MDX
```
+------------------- [ FREEZE ] -------------------+
| |
| to: 2027-01-01T00:00:00Z |
| done: open |
| caption: until launch |
| |
+--------------------------------------------------+
```install
command
closed
The date has passed, so the frame shows the label you set.
00:00:00
MDX
```
+------------------- [ WINDOW ] -------------------+
| |
| to: 2020-01-01T00:00:00Z |
| done: closed |
| |
+--------------------------------------------------+
```| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| to | Date | number | string | — | The deadline. A date, timestamp, or ISO string. |
| done | string | "done" | What to show after the deadline. |
| caption | string | — | Line under the number. |
| palette | "mono" | "duo" | "multi" | "mono" | mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents. |
| corner | string | "+" | Character at each corner of the frame. |
| className | string | — | Passed to the outer frame. |