Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.48 KB

File metadata and controls

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

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

A maintenance component displays a screen to users when they are undergoing scheduled maintenance.

Examples

Basic maintenance

To provide users with basic information regarding maintenance. A basic maintenance state should contain an appropriate and informative titleText. defaultBodyText will be used by default.

Custom maintenance

To override the default bodyText and footer link, specify your own using bodyText and customFooter. You may add a startTime, endTime and timeZone that will be displayed as shown below. timeZone will be set to UTC by default.