UNPKG

@mrii/react-table-builder

Version:
14 lines (13 loc) 417 B
/// <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>;