import { useState } from 'react'; import { Button, DescriptionList, DescriptionListTerm, DescriptionListDescription, Card, Checkbox } from '@patternfly/react-core'; import RhUiAddCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-add-circle-fill-icon'; export const DescriptionListWithCard: React.FunctionComponent = () => { const [isChecked, setIsChecked] = useState(false); const [isSelectable, setSelectable] = useState(false); const toggleSelectable = (checked: boolean) => { setSelectable(checked ? true : false); setIsChecked(checked); }; return ( <>
toggleSelectable(checked)} aria-label="set isSelectable" id="toggle-isSelectable" name="toggle-isSelectable" />
Name Example Namespace mary-test Labels example Pod selector Annotation 2 Annotations ); };