I
UseTimeAgoOptions
testeddemoOptions for `useTimeAgo`.
Demo
Loading demo…
Signature
ts
interface UseTimeAgoOptions<Controls extends boolean, UnitNames extends string = UseTimeAgoUnitName> extends FormatTimeAgoOptions<UnitNames>Type Parameters
Controlsextends booleanUnitNamesextends string= UseTimeAgoUnitNameProperties
| Property | Type | Description |
|---|---|---|
controls? | Controls | undefined | Expose pause/resume controls alongside the time string. |
updateInterval? | number | undefined | Interval (ms) at which the relative string is recomputed. |
immediate? | boolean | undefined | Start the update interval immediately. |