immuto-react
Version:
React bindings for Immuto
15 lines (14 loc) • 618 B
TypeScript
/// <reference types="react" />
import * as React from "react";
import { Property } from "immuto";
import { FormElementProps } from "./FormElementProps";
export interface SelectProps<T> extends FormElementProps {
binding: Property<T>;
options: T[];
labels?: (value: T) => string;
size?: number;
}
export declare function TypedSelect<T>(): React.ComponentClass<SelectProps<T>>;
export declare const Select: React.ComponentClass<SelectProps<any>>;
export declare const SelectString: React.ComponentClass<SelectProps<string>>;
export declare const SelectNumber: React.ComponentClass<SelectProps<number>>;