/** * Copyright IBM Corp. 2016, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React, { type HTMLAttributes } from 'react'; export interface FormGroupProps extends HTMLAttributes { /** * Provide the children form elements to be rendered inside of the
*/ children: React.ReactNode; /** * Provide a custom className to be applied to the containing
node */ className?: string; /** * Specify whether the FormGroup should be disabled */ disabled?: boolean; /** * Specify whether the is invalid */ invalid?: boolean; /** * Provide id for the fieldset which corresponds to the fieldset * `aria-labelledby` */ legendId?: string; /** * Provide the text to be rendered inside of the fieldset */ legendText: React.ReactNode; /** * Specify whether the message should be displayed in the */ message?: boolean; /** * Provide the text for the message in the */ messageText?: string; } declare const FormGroup: { ({ disabled, legendId, legendText, invalid, children, className, message, messageText, ...rest }: FormGroupProps): import("react/jsx-runtime").JSX.Element; propTypes: { /** * Provide the children form elements to be rendered inside of the
*/ children: PropTypes.Requireable; /** * Provide a custom className to be applied to the containing
node */ className: PropTypes.Requireable; /** * Specify whether the FormGroup should be disabled */ disabled: PropTypes.Requireable; /** * Specify whether the is invalid */ invalid: PropTypes.Requireable; /** * Provide id for the fieldset which corresponds to the fieldset * `aria-labelledby` */ legendId: PropTypes.Requireable; /** * Provide the text to be rendered inside of the fieldset */ legendText: PropTypes.Validator>; /** * Specify whether the message should be displayed in the */ message: PropTypes.Requireable; /** * Provide the text for the message in the */ messageText: PropTypes.Requireable; }; }; export default FormGroup;