Skip to content

Commit 1269144

Browse files
github-actions[bot]adamkudrna
authored andcommitted
Document that InputGroup can be used inside FormLayout (#713)
The InputGroup component already inherits its layout from FormLayout when nested inside it, but the docs did not mention this. Also add InputGroup to FormLayout's list of supported form fields, since its own docs already demonstrate nesting InputGroup.
1 parent dd332ed commit 1269144

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/components/FormLayout/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ there are longer validation messages or help texts.
4949

5050
The FormLayout supports buttons and all React UI form fields:
5151
[Button](/components/Button), [CheckboxField](/components/CheckboxField),
52-
[FileInputField](/components/FileInputField), [Radio](/components/Radio),
52+
[FileInputField](/components/FileInputField),
53+
[InputGroup](/components/InputGroup), [Radio](/components/Radio),
5354
[SelectField](/components/SelectField), [TextArea](/components/TextArea),
5455
[TextField](/components/TextField), and [Toggle](/components/Toggle).
5556

src/components/InputGroup/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ See [API](#api) for all available options.
7373
[ButtonGroup](/components/ButtonGroup) component which is designed
7474
specifically for that purpose.
7575

76+
- InputGroup can be used inside [FormLayout](/components/FormLayout). In that
77+
case, its `layout` prop is ignored and the value is inherited from
78+
FormLayout instead.
79+
7680
## Sizes
7781

7882
All existing field and button sizes are also available on the input group level:

0 commit comments

Comments
 (0)