mantine-entity
Version:
A library combining Mantine, TanStack Query, and Mantine React Table for efficient entity management
16 lines (15 loc) • 547 B
TypeScript
import { SelectProps } from "@mantine/core";
import React from "react";
import { DataItem } from "../model";
declare const AsyncSelect: React.ForwardRefExoticComponent<{
dataSource?: {
valueKey?: string;
labelKey?: string | string[];
url?: string;
method?: string;
mapData?: (data: any) => DataItem[] | undefined;
getBaseUrl?: (path: string) => string;
httpGet?: (url: string) => Promise<any>;
};
} & SelectProps & React.RefAttributes<HTMLInputElement>>;
export default AsyncSelect;