envoc-form
Version:
Envoc form components
17 lines (16 loc) • 774 B
TypeScript
/// <reference types="react" />
import { InjectedFieldProps } from './Field/InjectedFieldProps';
export interface GroupProps extends InjectedFieldProps<any> {
/** Extra class names to apply. */
className?: string;
children: React.ReactNode;
/** Simple text label before the input. */
label?: string;
/** Simple helper text after the input. */
helpText?: string | React.ReactNode;
/** Whether the field should be disabled. */
disabled?: boolean;
required?: boolean;
}
/** Contains standard field bits like a label, helper text, error scroll target, validation message container, etc. */
export default function Group({ className, children, label, helpText, meta, input, disabled, required, }: GroupProps): JSX.Element;