WhenPropsinterface

{
	target: PossibleDate | undefined;
	current?: PossibleDate | undefined;
	full?: boolean | undefined;
}
PropertyType
.targetPossibleDate
Values that can be converted to dates.
.currentPossibleDate
Reference date the relative time is measured against. Defaults to "now"
.fullboolean

Props for When, Ago, and Until — a target date plus an optional current reference date and full toggle.

  • Unit format options go straight on the props, e.g. <Ago target={when} unitDisplay="short" />. unitDisplay defaults to "narrow" (e.g. 3h).