UI kit reference
time
import { … } from 'zidane-ui'ui/src/time.ts
Constants#
TIME_LABELSConstant#
The words of a time, browser-safe: "now", and the month names of a date.
zidane's relativeTime (zidane/chat/pure) reads them. DEFAULT_LABELS
(labels.tsx) spreads them, so an app overrides them there like any other label.
const TIME_LABELS: { justNow: string; months: readonly string[] }Types#
TimeLabelsType#
The words zidane's relativeTime reads (TimeWords in zidane/chat/pure).
type TimeLabels = typeof TIME_LABELS