import { useState } from 'react'; import { Card, CardHeader, CardTitle, CardBody, Checkbox, Gallery } from '@patternfly/react-core'; export const CardClickable: React.FunctionComponent = () => { const [isSecondary, setIsSecondary] = useState(false); const toggleVariant = (checked: boolean) => { setIsSecondary(checked); }; return ( <> toggleVariant(checked)} aria-label="add secondary styling" id="toggle-variant-clickable" name="toggle-variant" />
console.log(`First card in actionable example clicked`), selectableActionAriaLabelledby: 'clickable-card-example-title-1' }} > First card in the actionable example This card performs an action on click. Second card in the actionable example This card can navigate to a link on click. console.log(`Third card in actionable example clicked`), selectableActionAriaLabelledby: 'clickable-card-example-title-3' }} > Third card in the actionable example This card is clickable but disabled.
); };