diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index 8447806aebf9..d4d657b13b23 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -3733,6 +3733,9 @@ Map { "className": Object { "type": "string", }, + "disabled": Object { + "type": "bool", + }, "invalid": Object { "type": "bool", }, diff --git a/packages/react/src/components/FormGroup/FormGroup.tsx b/packages/react/src/components/FormGroup/FormGroup.tsx index 7dd2a8b541bb..e269cfa780a7 100644 --- a/packages/react/src/components/FormGroup/FormGroup.tsx +++ b/packages/react/src/components/FormGroup/FormGroup.tsx @@ -20,6 +20,10 @@ export interface FormGroupProps extends ReactAttr { * 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 */ @@ -45,6 +49,7 @@ export interface FormGroupProps extends ReactAttr { } const FormGroup = ({ + disabled = false, legendId, legendText, invalid = false, @@ -60,6 +65,7 @@ const FormGroup = ({ return (
is invalid */