Skip to components
DEVELOPER REFERENCE · v4.0.0

Combobox API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

Combobox21 props2 callbacks0 methods

Props21

Combobox props
NameTypeDescription
environmentOptional
DropdownEnvironment | undefinedInspect type
Dropdown rendering environment, including host integration and event handling.
triggerAttributesOptional
JSX.HTMLAttributes<HTMLDivElement> | undefinedInspect type
Additional HTML attributes applied to the dropdown trigger element.
sourceRequired
DropdownOption<T>[]Inspect type
Data or option source consumed by this component; expand the type for supported representations.
dataSourceOptional
DropdownDataSource<T> | undefinedInspect type
Optional application-owned remote search and ID resolver. Values must be string/number IDs.
dataContextOptionalunknownRow/application context; changing its identity invalidates the remote session.
remoteTextOptional
Partial<DropdownRemoteText> | undefinedInspect type
Localized messages for loading, empty and failed remote-option requests.
valueOptional
T | T[] | undefinedInspect type
Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted.
placeholderOptionalstring | undefinedContent shown when there is no entered or selected value.
disabledOptionalboolean | undefinedDisable all dropdown interaction, including autoOpen and chip removal. Defaults to false. Disabling an open dropdown closes it once; re-enabling does not reopen it automatically. For grid callbacks, use DropdownColumnProps. See the [Dropdown Editor guide](/guides/editors/editor-dropdown/).
nameOptionalstring | undefinedForm field name submitted with the control value.
idOptionalstring | undefinedIdentifier used to associate the control with labels, popup content or other elements.
classNameOptionalstring | undefinedAdditional CSS classes applied to the component root.
styleOptional
DropdownStyle | undefinedInspect type
Inline styles or style configuration applied to this component; expand the type for supported entries.
configOptional
DropdownConfig<T> | undefinedInspect type
Component configuration. Expand the type to see accepted fields and alternative forms.
beforeOutsideCloseOptional
(() => boolean | void) | undefinedInspect type
Validate or save a draft before outside-pointer dismissal. False keeps it open. Escape, selection and programmatic closure never invoke this callback.
renderContentOptional
((props: { id: string; close: (focusNext?: boolean) => void; }) => DropdownRenderable) | undefinedInspect type
Replace the popup body while retaining the shared trigger, tags and positioning. Custom content owns its keyboard navigation and renders a dialog with `id`.
renderOptionOptional
((h: HyperFunc<DropdownVNode>, option: DropdownOption<T>, isSelected: boolean) => DropdownRenderable) | undefinedInspect type
Custom renderer for an option and its current selection/disabled state.
renderValueOptional
((h: HyperFunc<DropdownVNode>, option: DropdownOption<T>) => DropdownRenderable) | undefinedInspect type
Render the content of each selected value while preserving the built-in single/multi-select wrappers, remove controls, and expand indicator.
renderPlaceholderOptional
((h: HyperFunc<DropdownVNode>, placeholder: string, children: DropdownRenderable) => DropdownRenderable) | undefinedInspect type
Custom renderer for the dropdown placeholder when no option is selected.
renderSelectedValueOptional
((h: HyperFunc<DropdownVNode>, selectedOptions: DropdownOption<T>[], children: DropdownRenderable) => DropdownRenderable) | undefinedInspect type
Render the selected value
renderNoResultsOptional
((h: HyperFunc<DropdownVNode>) => DropdownRenderable) | undefinedInspect type
Custom renderer for an empty options list.

Events and callbacks2

Combobox events and callbacks
NameTypeDescription
onChangeOptional
((value: T | T[]) => void) | undefinedInspect type
Receives the new value when the user changes the control. Update the corresponding value prop for controlled use.
onCloseOptional
((focusNext?: boolean) => void) | undefinedInspect type
Requests that the parent close the surface or picker.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.