Multiselect Field
Also called 'checkbox field'. This component is a list of checkable items. In this case, a user can choose one, many, all, or no options.
Package: @terreno/ui
Categories: Component
Props interface: MultiselectFieldProps
Story source: demo/stories/MultiselectField.stories.tsx
Live demo
Props
| Prop | Type | Required | Description |
|---|---|---|---|
onChange | reflection | Yes | The function to call when the selected values change. |
options | array | Yes | The available options for the multiselect field. |
title | string | Yes | The title of the multiselect field. |
value | array | Yes | The selected values of the multiselect field. |
disabled | boolean | The disabled state of multiselect. Removes checkboxes and only shows the values. | |
errorText | string | ||
helperText | string | ||
testID | string | Root test id for the primary interactive element or container. | |
testIDs | FieldTestIDs | ||
variant | union | The variant of the multiselect field, which determines the position of the text. |