import { useRef, useState } from 'react'; import { Form, FormGroup, TextInput, Popover, HelperText, HelperTextItem, FormHelperText, FormGroupLabelHelp } from '@patternfly/react-core'; export const FormGroupLabelInfo: React.FunctionComponent = () => { const [name, setName] = useState(''); const labelHelpRef = useRef(null); const handleNameChange = (_event, name: string) => { setName(name); }; return (
The{' '} name {' '} of a{' '} Person } bodyContent={
Often composed of{' '} givenName {' '} and{' '} familyName .
} > } isRequired fieldId="form-group-label-info" > Include your middle name if you have one.
); };