immuto-react
Version:
React bindings for Immuto
23 lines (22 loc) • 1.61 kB
TypeScript
/// <reference types="react" />
import { Property } from "immuto";
import { FormElementProps } from "./FormElementProps";
export declare type AutoComplete = "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "url";
export declare type InputMode = "verbatim" | "latin" | "latin-name" | "latin-prose" | "full-width-latin" | "kana" | "katakana" | "numeric" | "tel" | "email" | "url";
export declare type SelectionDirection = "forward" | "backward" | "none";
export interface StandardTextInputProps extends FormElementProps {
autocomplete?: AutoComplete;
inputmode?: InputMode;
list?: string;
maxlength?: number;
minlength?: number;
pattern?: string;
placeholder?: string;
selectionDirection?: SelectionDirection;
size?: number;
spellcheck?: boolean;
}
export interface TextInputProps extends StandardTextInputProps {
binding: Property<string>;
}
export declare const TextInput: (props: TextInputProps) => JSX.Element;