diff --git a/mkdocs.yml b/mkdocs.yml index 784c68809..1bafe035e 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 ba00a03d8..3c26f357c 100644 --- a/src/components/FormLayout/README.md +++ b/src/components/FormLayout/README.md @@ -50,7 +50,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), -[InputGroup](/components/InputGroup), [Radio](/components/Radio), +[InputGroup](/components/InputGroup), +[MultiSelectField](/components/MultiSelectField), [Radio](/components/Radio), [SelectField](/components/SelectField), [TextArea](/components/TextArea), [TextField](/components/TextField), and [Toggle](/components/Toggle). @@ -58,6 +59,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 = [ @@ -138,6 +140,12 @@ React.createElement(() => { options={options} value={fruit} /> + setPreferredFruits(value)} + options={options} + value={preferredFruits} + />