1
import * as React from 'react';
2 4
import { createHostComponent } from '@remax/shared';
3

4
export interface InputProps {
5
  readonly dataset?: DOMStringMap;
6
  id?: string;
7
  className?: string;
8
  style?: React.CSSProperties;
9
  value?: string;
10
  name?: string;
11
  type?: string;
12
  password?: boolean;
13
  placeholder?: string;
14
  placeholderStyle?: React.CSSProperties;
15
  placeholderClassName?: string;
16
  disabled?: boolean;
17
  maxlength?: number;
18
  focus?: boolean;
19
  confirmType?: 'done' | 'go' | 'next' | 'search' | 'send';
20
  confirmHold?: boolean;
21
  cursor?: number;
22
  selectionStart?: number;
23
  selectionEnd?: number;
24
  randomNumber?: boolean;
25
  controlled?: boolean;
26
  enableNative?: boolean;
27
  onInput?: (e: any) => void;
28
  onConfirm?: (e: any) => void;
29
  onFocus?: (e: any) => void;
30
  onBlur?: (e: any) => void;
31
}
32

33 4
export const Input: React.ComponentType<InputProps> = createHostComponent<InputProps>('input');

Read our documentation on viewing source code .

Loading