Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.56 KB

File metadata and controls

38 lines (27 loc) · 1.56 KB
section Extensions
subsection Component groups
id Stale data warning
source react
propComponents
StaleDataWarning
sourceLink https://github.com/patternfly/react-component-groups/blob/main/packages/module/patternfly-docs/content/extensions/component-groups/examples/StaleDataWarning/StaleDataWarning.md

import StaleDataWarning from '@patternfly/react-component-groups/dist/dynamic/StaleDataWarning'; import { Fragment, FunctionComponent } from 'react';

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.