mirror of
https://github.com/SomboChea/ui
synced 2024-05-12 06:21:36 +07:00
30 lines
937 B
JavaScript
30 lines
937 B
JavaScript
|
/**
|
||
|
* @prettier
|
||
|
* @flow
|
||
|
*/
|
||
|
|
||
|
import { InputAdornmentProps } from '@material-ui/core/InputAdornment';
|
||
|
|
||
|
export interface IProps {
|
||
|
suggestions: any[];
|
||
|
suggestionsLoading?: boolean;
|
||
|
suggestionsLoaded?: boolean;
|
||
|
suggestionsError?: boolean;
|
||
|
apiLoading?: boolean;
|
||
|
color?: string;
|
||
|
value?: string;
|
||
|
placeholder?: string;
|
||
|
startAdornment?: React.ComponentType<InputAdornmentProps>;
|
||
|
disableUnderline?: boolean;
|
||
|
onChange?: (event: SyntheticKeyboardEvent<HTMLInputElement>, { newValue: string, method: string }) => void;
|
||
|
onSuggestionsFetch?: ({ value: string }) => Promise<void>;
|
||
|
onCleanSuggestions?: () => void;
|
||
|
onClick?: (event: SyntheticKeyboardEvent<HTMLInputElement>, { suggestionValue: any[], method: string }) => void;
|
||
|
onKeyDown?: (event: SyntheticKeyboardEvent<HTMLInputElement>) => void;
|
||
|
onBlur?: (event: SyntheticKeyboardEvent<HTMLInputElement>) => void;
|
||
|
}
|
||
|
|
||
|
export interface IInputField {
|
||
|
color: string;
|
||
|
}
|