import React from 'react'; import { Button, DescriptionList, DescriptionListTerm, DescriptionListDescription, Card, Checkbox } from '@breakaway/preact-core'; import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon'; export const DescriptionListWithCard: React.FunctionComponent = () => { const [isChecked, setIsChecked] = React.useState(false); const [isSelectable, setSelectable] = React.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 ); };