@etsoo/materialui
Version:
TypeScript Material-UI Implementation
23 lines (22 loc) • 791 B
TypeScript
import { InputFieldProps } from "./InputField";
import { ListType2 } from "@etsoo/shared";
import { AutocompleteProps } from "@mui/material/Autocomplete";
export type TagListProProps<D extends ListType2 = ListType2> = Omit<AutocompleteProps<D, true, false, false>, "open" | "multiple" | "options" | "renderInput"> & {
/**
* Label
*/
label?: string;
/**
* Load data callback
*/
loadData: (keyword: string | undefined, items: number) => PromiseLike<D[] | null | undefined>;
/**
* Input props
*/
inputProps?: Omit<InputFieldProps, "onChange">;
/**
* Max items
*/
maxItems?: number;
};
export declare function TagListPro<D extends ListType2 = ListType2>(props: TagListProProps<D>): import("react/jsx-runtime").JSX.Element;