denwa-react-shared
Version:
18 lines (17 loc) • 644 B
TypeScript
import { CSSProperties } from 'react';
import { OptionType } from '../../types';
export interface BaseSearchInputProps {
notFoundText: string;
dataName: string | string[] | undefined;
value: string | string[] | undefined;
searchTypeDefaultValue: string;
searchTypeOptions: OptionType[];
placeholder?: string;
style?: CSSProperties;
searchTypeStyle?: CSSProperties;
loading?: boolean;
disabled?: boolean;
mode?: 'multiple' | 'tags';
onSearch: (value: string, searchTypeValue: string, callback: (data: OptionType[]) => void) => void;
onChange: (value: string | string[] | undefined) => void;
}