import React, { FormEvent } from 'react'; import { ExpandableSection, Checkbox } from '@patternfly/react-core'; export const ExpandableSectionIndented: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(true); const [isDisplayLgChecked, setIsDisplayLgChecked] = React.useState(false); const onToggle = (_event: React.MouseEvent, isExpanded: boolean) => { setIsExpanded(isExpanded); }; const onDisplaySizeCheck = (_event: FormEvent, checked: boolean) => setIsDisplayLgChecked(checked); return ( <>
This content is visible only when the component is expanded. ); };