A stale data warning component displays a warning status when an object is stale and planned for removal. Additional warning details can be displayed as a tooltip or text label.
Examples
Basic stale data warning example
A basic stale data warning component displays a warning icon with additional details in a tooltip, including a timeline for data removal.
Stale data warning with customized props
Instead of sharing details in a tooltip, you can place a short message beside the icon. You can still utilize all properties of the tooltip component, with the exception of content
.
Props
StaleDataWarning
Name | Type | Default | Description |
---|---|---|---|
culled | No type info | new Date(0) | |
currDate | No type info | new Date(0) | |
stale | No type info | new Date(0) | |
staleWarning | No type info | new Date(0) |