import React from 'react'; import { ExpandableSection, Badge } from '@breakaway/preact-core'; import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon'; export const ExpandableSectionCustomToggle: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(false); const onToggle = (_event: React.MouseEvent, isExpanded: boolean) => { setIsExpanded(isExpanded); }; return ( You can also use icons or badges 4 ! } onToggle={onToggle} isExpanded={isExpanded} > This content is visible only when the component is expanded. ); };