@dxos/react-ui
    Preparing search index...
    TimestampProps: ThemedClassName<
        Omit<ComponentPropsWithoutRef<"time">, "children" | "dateTime">,
    > & {
        date: DateLike;
        justNow?: string;
        now?: Date;
        variant?: "compact" | "relative";
    }

    Type declaration

    • date: DateLike

      The instant shown, as an ISO string, a Unix timestamp in milliseconds, or a Date.

    • OptionaljustNow?: string

      Text for the first minute in the relative variant, translated by the caller.

    • Optionalnow?: Date

      The instant to measure against, so a story or test does not move with the wall clock; live otherwise.

    • Optionalvariant?: "compact" | "relative"

      compact (default) fits a column: now, 12m, 5h, then 12 Sep. relative reads as prose: 5 minutes ago, yesterday, then 12 Sep.