OptionalautoFocus?: booleanOptionalblurOnEndEditing?: booleanIndicates if the input should be blurred when editing ends. If set to false, default blur handling is used.
If set to true the input is explicitly blurred when it would not be otherwise when editing ends (e.g. when an
option is selected or when ESC is pressed). Generally should not be set in normal forms as preserving focus makes
the form easier to use.
OptionalclearOnSelect?: booleanIndicates if the search value should be cleared when a value is selected.
OptionalcontinueEditingOnSelect?: booleanIndicates if the input should remain in editing state (showing drop-down) after a value is selected.
Optionaldisabled?: booleanIndicates if the input is disabled.
OptionaldisableFiltering?: booleanIndicates whether filtering should be disabled. For example, if filtering is handled in an ancestor.
OptionaldisableSorting?: booleanIndicates whether sorting based on the search value should be disabled. For example, if default order should be preserved.
OptionaldisplayOption?: (props: SearchDropDownOption<T>) => React.ReactNodeControls the display of rendered options.
OptionaldropDownClassName?: stringCSS class name to give to the options drop-down.
OptionalfooterElement?: React.ReactNodeAn element to display at the bottom of the dropdown.
Optionalid?: stringThe ID of the input.
Optionalinline?: booleanIndicates if the drop down menu should be rendered with block display (so that it takes up space instead of overlaying). Useful when there is interactive content near the input or when in a tooltip (e.g. QuickFilter).
OptionalinputClassName?: stringCSS class name to give to the input.
Optionalinvalid?: booleanIndicates if the input is invalid.
OptionalisLoading?: booleanIndicates if the options are currently loading.
OptionalloadingElement?: React.ReactNodeA custom element to display as the loading option.
Optionalname?: stringThe name of the input.
OptionalnoDropDownArrow?: booleanIndicates if the drop down arrow (on the right side of the input) should be hidden.
OptionalnoResultsElement?: React.ReactNodeA custom element to display as the "No Results" option.
OptionalonBlur?: () => voidA callback function to call when focus is removed from the input.
OptionalonEndEditing?: () => voidA callback function to call when editing ends on the input.
OptionalonFocus?: () => voidA callback function to call when the input becomes focused.
OptionalopenSide?: Extract<CardinalLocation, "top" | "bottom">Optional manual control for the direction that the drop down opens in (unset is dynamic).
OptionaloptionClassName?: stringCSS class name to give to each option.
The options for the value.
OptionalpageSize?: numberSets the maximum number of results displayed (users can opt to show more, which will render at most pageSize
more results). Useful for optimizing render performance with a large number of options. If pageSize is less
than zero (e.g. -1), all results are rendered.
Optionalplaceholder?: stringPlaceholder text to display when the value is blank.
OptionalpreserveSearch?: booleanIndicates if the search value should be preserved when focusing or bluring the input or when selecting a value.
If set to true the setSearchValue function will only be called in response to typing, not due to other
events except clearing on select if enabled.
OptionalsearchKeys?: SearchDropDownSearchKey[]A list of case-insensitive keys supported for search. Should match the keyedValues field of the given
options. Elements of this array can either be a string or an object specifying a key and the matching
behavior. The default matching behavior is "exact", which means the value following the key prefix must match the
value in the option's searchValues object (ignoring case).
Example usage in the input: "key:value".
The search value entered.
A callback function to update the searchValue when the user types.
A callback function to update the input value when a change happens.
OptionalshowNoResults?: booleanIndicates whether to show the "No Results" option if there are no results.
OptionalsideEffect?: (v: T) => voidA side effect function to call when the value changes as a result of user interaction with this input, and not external updates to the field value.
The value of the input.
Indicates if the input should be auto-focused.