@project44-manifest/react
Version:
Manifest Design System react components
20 lines • 1.07 kB
TypeScript
import type { MultiComboboxProps, MultiComboboxState } from '../../types';
export interface MultiComboBoxStateProps<T> extends MultiComboboxProps<T> {
/** The filter function used to determine if a option should be included in the combo box list. */
defaultFilter?: (textValue: string, inputValue: string) => boolean;
/** Whether the combo box allows the menu to be open when the collection is empty. */
allowsEmptyCollection?: boolean;
/** Whether the combo box menu should close on blur. */
shouldCloseOnBlur?: boolean;
}
/**
* Pulled directly from the following library and augmented for our needs:
*
* https://github.com/so99ynoodles/headless-react/blob/main/packages/combobox/src/hooks/useMultiComboBoxState.tsx
*
* Original created by react-aria:
*
* https://github.com/adobe/react-spectrum/blob/main/packages/%40react-stately/combobox/src/useComboBoxState.ts
*/
export declare function useMultiComboboxState<T extends object>(props: MultiComboBoxStateProps<T>): MultiComboboxState<T>;
//# sourceMappingURL=useMultiComboboxState.d.ts.map