import { Fragment, useState } from 'react'; import { Card, Content, Divider, Drawer, DrawerActions, DrawerCloseButton, DrawerContent, DrawerContentBody, DrawerHead, DrawerPanelBody, DrawerPanelContent, Flex, FlexItem, PageSection, Progress, SimpleList, SimpleListGroup, SimpleListItem, Title } from '@patternfly/react-core'; import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; export const PrimaryDetailSimpleListInCard: React.FunctionComponent = () => { const [drawerPanelBodyContent, setDrawerPanelBodyContent] = useState(1); const [isExpanded, setIsExpanded] = useState(false); const onSelectListItem = (_listItem, listItemProps) => { const id = listItemProps.children; setDrawerPanelBodyContent(id.charAt(id.length - 1)); setIsExpanded(true); }; const onClose = () => { setIsExpanded(false); }; const panelContent = ( {`List item ${drawerPanelBodyContent} details`}

The content of the drawer really is up to you. It could have form fields, definition lists, text lists, labels, charts, progress bars, etc. Spacing recommendation is 24px margins. You can put tabs in here, and can also make the drawer scrollable.

); const drawerContent = ( List item 1 List item 2 List item 3 List item 4 List item 5 List item 6 List item 7 List item 8 List item 9 ); return (

Main title

Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because
of it’s relative line height of 1.5.

{drawerContent}
); };