ComboboxMultiSelect API

API reference docs for theComboboxMultiSelectcomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropTypeDescriptionDefault
children((menuState: { isMenuOpen: boolean }) => React.ReactNode) | React.ReactNodeAccepts either a React node or a render function. The render function provides the menu's state (isMenuOpen)._
closeButtonPropsForMobile?{ label: string, onClick: function, size: 'large' | 'standard' | 'small' }If closeButtonPropsForMobile is provided then the mobile version of the component will have a close button_
inputValue?stringValue of the combobox input._
menuTrigger?'focus'| 'input'Interaction type to display the Combobox menu.input
mobileFriendly?booleanIndicates if the opened element should be rendered as a Sheet in mobile viewportstrue
onClearAll?() => voidHandler that is called when the Combobox input value is cleared._
onClearInput?() => voidFunction to be invoked for clearing the Combobox input value._
onClose?() => voidHandler that is called when the Combobox is closed_
onInputChange(value: string) => voidFunction to be invoked when the input value changes._
onRemoveLast?() => voidFunction to remove the last item in the selection options list. Invoked when user presses backspace._
onSelectionChange(option: object) => voidFunction to be invoked when the selection changes._
popoverMatchReferenceWidth?booleanMatch the width of the popover with the reference element.false
popoverMaxHeight?numberThe max height of the popover.356
popoverMaxWidth?numberThe max width of the popover.400
popoverOffset?numberThe offset of the combobox popover.4
popoverPlacement?'bottom' | 'bottom-start' | 'bottom-end'The placement of the popover relative to the combobox Input.'bottom-start'
selectedKeykeyOf objectKey for identifying the selected option._
selectedOptionsobject[] | undefinedCurrently selected options from the list._
strategy?'absolute' | 'fixed'The strategy used to position the floating element.'absolute'
titleForMobile?stringOn mobile ComboboxMultiSelect renders a Sheet component. If titleForMobile is provided then the Sheet will have a Header with title rendered_