@project44-manifest/react
Version:
Manifest Design System react components
18 lines • 976 B
TypeScript
import * as React from 'react';
import { ComboBoxAria } from '@react-aria/combobox';
import type { KeyboardDelegate } from '@react-types/shared';
import type { AriaMultiComboboxProps, MultiComboboxState } from '../../types';
export interface AriaMultiComboboxOptions<T> extends AriaMultiComboboxProps<T> {
/** The ref for the input element. */
inputRef: React.RefObject<HTMLInputElement>;
/** The ref for the list box popover. */
popoverRef: React.RefObject<Element>;
/** The ref for the list box. */
listBoxRef: React.RefObject<HTMLElement>;
/** The ref for the optional list box popup trigger button. */
buttonRef?: React.RefObject<Element>;
/** An optional keyboard delegate implementation, to override the default. */
keyboardDelegate?: KeyboardDelegate;
}
export declare function useMultiCombobox<T>(props: AriaMultiComboboxOptions<T>, state: MultiComboboxState<T>): ComboBoxAria<T>;
//# sourceMappingURL=useMultiCombobox.d.ts.map