Dropdown multiselect

Present a list of options to the user to select multiple values from.

Props

name
string
Identifier for the group. Used in change events.
ariaLabel
string
Provides an accessible label when no visible label is associated.
ariaLabelledBy
string
References an external element that labels this component.
disabled
boolean
Disables the component.
Defaults to false.
error
boolean
Shows an error state.
Defaults to false.
filterable
boolean
Enables filtering of options by typing in the trigger.
labelFormat
GoabDropdownMultiselectLabelFormatOptions
The display label format of the closed dropdown. When 'count' the display label shows only "n items" in the label, when 'list' it shows a comma separated list of selected item labels.
Defaults to list.
leadingIcon
GoabIconType
Icon shown to the left of the dropdown input.
maxHeight
string
Sets the maximum height of the dropdown content area.
Defaults to 276px.
placeholder
string
Text shown when nothing is selected.
showSelectAll
boolean
Shows a "Select All" checkbox at the top of the options list.
Defaults to false.
size
GoabDropdownMultiselectSize
Sets the size variant.
Defaults to default.
testId
string
Sets a data-testid attribute for automated testing.
value
string[]
Array of currently selected checkbox value.
width
string
Sets a fixed width for the component and popover panel.
mt, mr, mb, ml
Spacing
Apply margin to the top, right, bottom, and/or left of the component.
name
string
Identifier for the group. Used in change events.
ariaLabel
string
Provides an accessible label when no visible label is associated.
ariaLabelledBy
string
References an external element that labels this component.
disabled
boolean
Sets the disabled state for the control.
error
boolean
Sets the error state for the control.
filterable
boolean
Enables filtering of options by typing in the trigger.
id
string
Sets the id attribute of the underlying web component.
labelFormat
GoabDropdownMultiselectLabelFormatOptions
The display label format of the closed dropdown. When 'count' the display label shows only "n items" in the label, when 'list' it shows a comma separated list of selected item labels.
Defaults to list.
leadingIcon
GoabIconType
Icon shown to the left of the dropdown input.
maxHeight
string
Sets the maximum height of the dropdown content area.
Defaults to 276px.
placeholder
string
Text shown when nothing is selected.
showSelectAll
boolean
Shows a "Select All" checkbox at the top of the options list.
Defaults to false.
size
GoabDropdownMultiselectSize
Sets the size variant.
Defaults to default.
testId
string
Sets the data-testid attribute for automated testing.
value
string[]
Array of currently selected checkbox values.
width
string
Sets a fixed width for the component and popover panel.
mt, mr, mb, ml
Spacing
Apply margin to the top, right, bottom, and/or left of the component.
name
string
Identifier for the group. Used in change events.
aria-label
string
Provides an accessible label when no visible label is associated.
aria-labelledby
string
References an external element that labels this component.
disabled
boolean true | false
Disables the component. @default false
Defaults to false.
error
boolean true | false
Shows an error state. @default false
Defaults to false.
filterable
boolean true | false
Enables filtering of options by typing in the trigger.
Defaults to false.
label-format
GoabDropdownMultiselectLabelFormatOptions
The display label format of the closed dropdown. When 'count' the display label shows only "n items" in the label, when 'list' it shows a comma separated list of selected item labels. @default "list"
Defaults to list.
leading-icon
GoabIconType
Icon shown to the left of the dropdown input.
max-height
string
Sets the maximum height of the dropdown content area. @default "276px"
Defaults to 276px.
placeholder
string
Text shown when nothing is selected.
show-select-all
boolean true | false
Shows a "Select All" checkbox at the top of the options list. @default false
Defaults to false.
size
"default" | "compact"
Sets the size variant.
Defaults to default.
testid
string
Sets a data-testid attribute for automated testing.
value
string[]
Array of currently selected checkbox values.
Defaults to [].
width
string
Sets a fixed width for the component and popover panel.
mt, mr, mb, ml
Spacing
Apply margin to the top, right, bottom, and/or left of the component.

Events

onChange
(detail: GoabDropdownMultiselectOnChangeDetail) => void
Callback fired when the selected value change.
onChange
(event: GoabDropdownMultiselectOnChangeDetail) => void
Emits when the selected value change.
_change
CustomEvent<{ name: string; value: string[]; labels: string[] }>
value
string
The value submitted when this item is selected.
filter
string
Text used to filter and match this item in typeahead search.
label
string
Display label for the dropdown item.
mountType
GoabDropdownItemMountType
Controls how the item is registered with the parent dropdown.
testId
string
Sets a data-testid attribute for automated testing.
filter
string
Text used to filter and match this item in typeahead search.
label
string
Display label for the dropdown item.
mountType
GoabDropdownItemMountType
Controls how the item is registered with the parent dropdown.
name
string
Sets the name attribute of the dropdown item.
value
string
The value submitted when this item is selected.
filter
string
Text used to filter and match this item in typeahead search.
label
string
Display label for the dropdown item.
mount
"append" | "prepend" | "reset"
Controls how the item is registered with the parent dropdown.
Defaults to reset.
value
string
The value submitted when this item is selected.
Examples
Examples show common usage patterns and implementation guidance.

No usage guidelines have been documented for this component yet.

All GoA Design System components are built to meet WCAG 2.2 AA standards. The following guidelines provide additional context for accessible implementation.

No accessibility-specific guidelines have been documented for this component yet.

View old component docs