diff --git a/mkdocs.yml b/mkdocs.yml index fa640c9e..67273a22 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -103,6 +103,7 @@ nav: - Inputs: - CheckBoxField: 'components/CheckboxField/README.md' - FileInputField: 'components/FileInputField/README.md' + - MultiSelectField: 'components/MultiSelectField/README.md' - Radio: 'components/Radio/README.md' - SelectField: 'components/SelectField/README.md' - TextArea: 'components/TextArea/README.md' diff --git a/src/components/FormLayout/README.md b/src/components/FormLayout/README.md index 88d30953..7e778f9a 100644 --- a/src/components/FormLayout/README.md +++ b/src/components/FormLayout/README.md @@ -49,7 +49,8 @@ there are longer validation messages or help texts. The FormLayout supports buttons and all React UI form fields: [Button](/components/Button), [CheckboxField](/components/CheckboxField), -[FileInputField](/components/FileInputField), [Radio](/components/Radio), +[FileInputField](/components/FileInputField), +[MultiSelectField](/components/MultiSelectField), [Radio](/components/Radio), [SelectField](/components/SelectField), [TextArea](/components/TextArea), [TextField](/components/TextField), and [Toggle](/components/Toggle). @@ -57,6 +58,7 @@ The FormLayout supports buttons and all React UI form fields: React.createElement(() => { const [fieldLayout, setFieldLayout] = React.useState('horizontal'); const [fruit, setFruit] = React.useState('apple'); + const [preferredFruits, setPreferredFruits] = React.useState(['apple']); const [isDeliveryAddress, setIsDeliveryAddress] = React.useState(true); const [receiveNewsletter, setReceiveNewsletter] = React.useState(true); const options = [ @@ -137,6 +139,12 @@ React.createElement(() => { options={options} value={fruit} /> + setPreferredFruits(value)} + options={options} + value={preferredFruits} + />