MCPcopy Index your code
hub / github.com/react-component/input / InputProps

Interface InputProps

src/interface.ts:88–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88export interface InputProps
89 extends CommonInputProps,
90 Omit<
91 InputHTMLAttributes<HTMLInputElement>,
92 'size' | 'prefix' | 'type' | 'value'
93 > {
94 value?: ValueType;
95 prefixCls?: string;
96 // ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#%3Cinput%3E_types
97 type?: LiteralUnion<
98 | 'button'
99 | 'checkbox'
100 | 'color'
101 | 'date'
102 | 'datetime-local'
103 | 'email'
104 | 'file'
105 | 'hidden'
106 | 'image'
107 | 'month'
108 | 'number'
109 | 'password'
110 | 'radio'
111 | 'range'
112 | 'reset'
113 | 'search'
114 | 'submit'
115 | 'tel'
116 | 'text'
117 | 'time'
118 | 'url'
119 | 'week',
120 string
121 >;
122 onPressEnter?: KeyboardEventHandler<HTMLInputElement>;
123 /** It's better to use `count.show` instead */
124 showCount?:
125 | boolean
126 | {
127 formatter: ShowCountFormatter;
128 };
129 autoComplete?: string;
130 htmlSize?: number;
131 classNames?: CommonInputProps['classNames'] & {
132 input?: string;
133 count?: string;
134 };
135 styles?: CommonInputProps['styles'] & {
136 input?: CSSProperties;
137 count?: CSSProperties;
138 };
139 count?: CountConfig;
140 onClear?: () => void;
141}
142
143export interface InputRef {
144 focus: (options?: InputFocusOptions) => void;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…