@mrii/react-table-builder
Version:
library to easily build tables using MUI grid
14 lines (13 loc) • 417 B
TypeScript
/// <reference types="react" />
import type { FilterAllowedColumnTypeUnion, SelectItem } from "../../types";
export type FilterFieldProps<T = unknown> = {
onChange: (value: T) => void;
value: T;
label: string;
} & ({
type: 'singleSelect';
items: SelectItem[];
} | {
type: Exclude<FilterAllowedColumnTypeUnion, 'singleSelect'>;
});
export declare const FilterField: React.FC<FilterFieldProps>;