import React from 'react'; import { Form, FormGroup, FormFieldGroup, FormFieldGroupExpandable, FormFieldGroupHeader, TextInput, Button } from '@breakaway/preact-core'; import TrashIcon from '@patternfly/react-icons/dist/esm/icons/trash-icon'; export const FormFieldGroups: React.FunctionComponent = () => { const initialValues = { '0-label1': '', '0-label2': '', '1-expanded-group1-label1': '', '1-expanded-group1-label2': '', '1-expanded-group2-label1': '', '1-expanded-group2-label2': '', '1-expanded-group3-label1': '', '1-expanded-group3-label2': '', '1-group1-label1': '', '1-group1-label2': '', '2-label1': '', '2-label2': '', '3-label1': '', '3-label2': '', '3-nonexpand-group1-label1': '', '3-nonexpand-group1-label2': '', '3-nonexpand-group2-label1': '', '3-nonexpand-group2-label2': '', '4-nonexpand-label1': '', '4-nonexpand-label2': '', '0-label3': '', '0-label4': '' }; const [inputValues, setInputValues] = React.useState(initialValues); const handleChange = (event, value: string) => { const { name } = event.currentTarget; setInputValues({ ...inputValues, [name]: value }); }; return (
); };