UNPKG

@etsoo/materialui

Version:

TypeScript Material-UI Implementation

32 lines (31 loc) 928 B
import { InputFieldProps } from "./InputField"; import { ListType2 } from "@etsoo/shared"; import { AutocompleteProps } from "@mui/material/Autocomplete"; export type ComboBoxProProps<D extends ListType2 = ListType2> = Omit<AutocompleteProps<D, false, false, true>, "open" | "multiple" | "options" | "renderInput"> & { /** * Label */ label?: string; /** * Field name */ name?: string; /** * Id value */ idValue?: D["id"] | null; /** * Options */ options: (() => PromiseLike<D[] | null | undefined>) | D[]; /** * Input props */ inputProps?: Omit<InputFieldProps, "onChange">; /** * Value change handler * @param value New value */ onValueChange?: (value: D | null) => void; }; export declare function ComboBoxPro<D extends ListType2 = ListType2>(props: ComboBoxProProps<D>): import("react/jsx-runtime").JSX.Element;