@aveonline/ui-react
Version:
Home base for Aveonline design system - ecosystem react
13 lines (12 loc) • 441 B
TypeScript
import type { ISelect, IOption } from '../Select';
export interface IAsyncSelect extends Omit<ISelect, 'options'> {
/**
* Handle change search async
*/
loadOptions?: (inputValue: string) => Promise<IOption[]> | undefined | void;
/**
* Will cause the select to be displayed in the loading state, even if the
* Async select is not currently waiting for loadOptions to resolve
*/
isLoading?: boolean;
}