Relative time and countdowns
0 of 4 shipped. Nothing has shipped here yet. The list below is what this family will hold, and how each structure differs.
Planned 4
Relative timestamp with absolute tooltip
Renders a time element with a machine readable datetime, formats with Intl.RelativeTimeFormat, and switches to an absolute date after a configurable threshold (7 days by default). The refresh interval widens as the timestamp ages (every 10 seconds, then every minute, then hourly) and updates are not announced. Server and client output match to avoid hydration flicker.
Segmented countdown timer
Visual ticks are separated from announcements: digits update every second inside an aria-hidden block while a visually hidden live region speaks only at milestones (each hour, 10 minutes, 1 minute, 10 seconds, done). Leading zero units drop away as time runs down, digits use tabular numerals, and the digit transition is removed under prefers-reduced-motion.
Deadline meter
Time shown as a proportion rather than digits: a filled track with start and due labels at the ends and optional milestone ticks between. State changes at configurable thresholds and is carried by a lucide icon and text ('Due in 3 days', 'Overdue by 2 days') together with success, warning and destructive tokens. Overdue extends a hatched segment past the end.
Uptime clock
Counts up from a start time instead of down to a target. Elapsed time is derived from the start timestamp on every tick so it stays correct after a background tab is throttled. Format adapts from mm:ss to hh:mm:ss to days plus time, a paused state freezes the value with a label, and the ticking digits are never announced.