Last Updated
A “last updated” string displays the time a set of data has been last updated by a system.
Props
Name | Type | Default | Description |
---|---|---|---|
className | string | Additionnal CSS class to add on the last updated | |
key | Key | ||
label | string | "Last update:" | The text displayed before the time |
onDestroy | () => void | A callback function executed when the component unmounts | |
onRender | () => void | A callback function executed when the component mounts | |
ref | LegacyRef<LastUpdated> | Allows getting a ref to the component instance.
Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). | |
time | Date | new Date() | A Date representing when the component last updated |
id deprecated | string | do not use |
Examples
Specific date
No guidelines exist for LastUpdated yet.