Debian Codegraph @

node/@patternfly/react-core/src/components/Form/FormFieldGroup.tsx

raw
1 import { InternalFormFieldGroup } from './InternalFormFieldGroup';
2
3 export interface FormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label' | 'onToggle'> {
4 /** Anything that can be rendered as form field group content. */
5 children?: React.ReactNode;
6 /** Additional classes added to the form field group. */
7 className?: string;
8 /** Form field group header */
9 header?: React.ReactNode;
10 }
11
12 export const FormFieldGroup: React.FunctionComponent<FormFieldGroupProps> = ({
13 children,
14 className,
15 header,
16 ...props
17 }: FormFieldGroupProps) => (
18 <InternalFormFieldGroup className={className} header={header} {...props}>
19 {children}
20 </InternalFormFieldGroup>
21 );
22 FormFieldGroup.displayName = 'FormFieldGroup';