UNPKG

grommet

Version:

focus on the essential experience

26 lines (21 loc) 1.06 kB
import * as React from "react"; export interface TextInputProps { dropAlign?: {top?: "top" | "bottom",bottom?: "top" | "bottom",right?: "left" | "right",left?: "left" | "right"}; dropHeight?: "xsmall" | "small" | "medium" | "large" | "xlarge" | string; dropTarget?: object; id?: string; focusIndicator?: boolean; messages?: {enterSelect?: string,suggestionsCount?: string,suggestionsExist?: string,suggestionIsOpen?: string}; name?: string; onSelect?: ((x: { target: React.RefObject<HTMLElement>['current'], suggestion: any }) => void); onSuggestionsOpen?: ((...args: any[]) => any); onSuggestionsClose?: ((...args: any[]) => any); placeholder?: string | React.ReactNode; plain?: boolean; size?: "small" | "medium" | "large" | "xlarge" | string; suggestions?: ({label?: React.ReactNode,value?: any} | string)[]; value?: string | number; } type Omit<T, K> = Pick<T, Exclude<keyof T, K>> declare const TextInput: React.ComponentClass<TextInputProps & Omit<JSX.IntrinsicElements['input'], 'onSelect' | 'size'>>; export { TextInput };