UNPKG

@intuitionrobotics/thunderstorm

Version:
29 lines (28 loc) 708 B
import * as React from "react"; import { ReactNode } from "react"; type Props<T> = { iconClose: ReactNode; iconOpen: ReactNode; options?: T[]; selectedOption?: T; onChange: (t: T) => void; styles: any; presentation: (t: T) => string; placeholder?: string | undefined; components?: any | undefined; isDisabled?: boolean; }; type State = { menuIsOpen: boolean; }; export declare class GenericSelect<T> extends React.Component<Props<T>, State> { constructor(props: Props<T>); render(): React.JSX.Element; handleSelection(item: SelectItem): void; } declare class SelectItem { value?: string; label: string; constructor(s: string); } export {};