Skip to main content
Version: 57.2.0

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

PropTypeRequiredDescription
onChangereflectionYesThe function to call when the selected values change.
optionsarrayYesThe available options for the multiselect field.
titlestringYesThe title of the multiselect field.
valuearrayYesThe selected values of the multiselect field.
disabledbooleanThe disabled state of multiselect. Removes checkboxes and only shows the values.
errorTextstring
helperTextstring
testIDstringRoot test id for the primary interactive element or container.
testIDsFieldTestIDs
variantunionThe variant of the multiselect field, which determines the position of the text.