Combobox API
API reference docs for theCombobox
component. For examples and details on the usage of this component, visit the component demo page.
Props
Prop | Type | Description | Default |
---|---|---|---|
|
| Accepts either a React node or a render function. The render function provides the menu's state (isMenuOpen). | _ |
|
| If | _ |
|
| Key for identifying the selected option. | _ |
|
| Currently selected option from the list. | _ |
|
| Value of the combobox input. | _ |
|
| Interaction type to display the Combobox menu. |
|
|
| Indicates if the opened element should be rendered as a Sheet in mobile viewports | true |
|
| Function to be invoked for clearing the Combobox input value. | _ |
|
| Function to be invoked when the input value changes. | _ |
|
| Function to be invoked when the selection changes. | _ |
|
| Match the width of the popover with the reference element. |
|
|
| The max height of the popover. |
|
|
| The max width of the popover. |
|
|
| The offset of the combobox popover. |
|
|
| The placement of the popover relative to the combobox Input. |
|
|
| The strategy used to position the floating element. |
|
|
| On mobile Combobox renders a Sheet component. If | _ |