Learn about the MultiSelect component for use in UI extensions.
MultiSelect
component renders a dropdown menu select field where a user can select multiple values. Commonly used within the Form component.
Prop | Type | Description |
---|---|---|
name | String | The input’s unique identifier. |
label | String | The text that displays above the dropdown menu. |
options | Array | The options to display in the dropdown menu. label will be used as the display text, and value should be the option’s unique identifier, which is submitted with the form. |
value | String | number | The value of the input. |
readOnly | Boolean | When set to true , users will not be able to enter a value into the field. Set to false by default. |
required | Boolean | When set to true , displays a required field indicator. |
tooltip | String | The text that displays in a tooltip next to the label. |
description | String | Text that describes the field’s purpose. |
error | Boolean | When set to true , validationMessage is displayed as an error message if provided. The input will also render its error state to let the user know there’s an error. If left false (default), validationMessage is displayed as a success message. |
validationMessage | String | The text to display if the input has an error. |
onChange | (value: (string | number)[]) => void | A callback function that is invoked when the value is committed. |