I
UseTimeAgoMessagesBuiltIn
testeddemoBuilt-in (non-unit) message slots.
Demo
Loading demo…
Signature
ts
interface UseTimeAgoMessagesBuiltInProperties
| Property | Type | Description |
|---|---|---|
justNow | string | Shown when the diff is below the smallest displayed unit |
past | string | UseTimeAgoFormatter<string> | Wraps a past fragment (e.g. `'3 minutes'` -> `'3 minutes ago'`) |
future | string | UseTimeAgoFormatter<string> | Wraps a future fragment (e.g. `'3 minutes'` -> `'in 3 minutes'`) |
invalid | string | Shown when the provided time cannot be parsed into a valid date |