hello-csv
Version:
A modern CSV importer written in Preact
23 lines • 787 B
TypeScript
import { ReactNode } from '../../shims/react-compat-shim.js';
export interface SelectOption<T> {
label: string;
value: T;
icon?: ReactNode;
group?: string;
}
interface Props<T> {
value: T[] | T | null;
options: SelectOption<T>[];
onChange: (value: T[] | T | null) => void;
multiple?: boolean;
compareFunction?: (a: T, b: T) => boolean;
clearable?: boolean;
searchable?: boolean;
placeholder?: string;
classes?: string;
displayPlaceholderWhenSelected?: boolean;
'aria-label'?: string;
}
export default function Select<T>({ value, options, onChange, multiple, compareFunction, clearable, searchable, placeholder, classes, displayPlaceholderWhenSelected, ...props }: Props<T>): any;
export {};
//# sourceMappingURL=Select.d.ts.map