Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/react-component/input
/ functions
Functions
31 in github.com/react-component/input
⨍
Functions
31
◇
Types & classes
8
↓ 4 callers
Function
onChange
(e: React.ChangeEvent<HTMLInputElement>)
tests/index.test.tsx:231
↓ 3 callers
Function
getInputRef
()
tests/focus.test.tsx:6
↓ 3 callers
Function
getSegments
(val: string)
tests/count.test.tsx:5
↓ 3 callers
Function
resolveOnChange
( target: E, e: | React.ChangeEvent<E> | React.MouseEvent<HTMLElement, MouseEvent> | React.Com
src/utils/commonUtils.ts:48
↓ 2 callers
Function
cloneEvent
(event: EventType, target: Element, value: any)
src/utils/commonUtils.ts:13
↓ 2 callers
Function
triggerChange
( e: | React.ChangeEvent<HTMLInputElement> | React.CompositionEvent<HTMLInputElement>, cur
src/Input.tsx:103
↓ 2 callers
Function
triggerFocus
( element?: HTMLInputElement | HTMLTextAreaElement, option?: InputFocusOptions, )
src/utils/commonUtils.ts:98
↓ 1 callers
Function
focus
(option?: InputFocusOptions)
src/Input.tsx:51
↓ 1 callers
Function
getInputElement
()
src/Input.tsx:200
↓ 1 callers
Function
getSuffix
()
src/Input.tsx:255
↓ 1 callers
Function
handleReset
(e: React.MouseEvent<HTMLElement, MouseEvent>)
src/Input.tsx:189
↓ 1 callers
Function
hasAddon
(props: BaseInputProps | InputProps)
src/utils/commonUtils.ts:4
↓ 1 callers
Function
hasPrefixSuffix
(props: BaseInputProps | InputProps)
src/utils/commonUtils.ts:8
↓ 1 callers
Function
useCount
( count?: CountConfig, showCount?: InputProps['showCount'], )
src/hooks/useCount.ts:23
Function
Demo
()
tests/BaseInput.test.tsx:56
Function
Demo
()
docs/examples/show-count.tsx:11
Function
Demo
()
docs/examples/basic.tsx:6
Function
Demo
()
docs/examples/prefix-suffix.tsx:6
Function
Demo
()
docs/examples/addon.tsx:6
Function
Demo
()
docs/examples/allow-clear.tsx:6
Function
handleBlur
(e)
src/Input.tsx:181
Function
handleChange
(e: ChangeEvent<HTMLInputElement>)
tests/BaseInput.test.tsx:63
Function
handleChange
(e: ChangeEvent<HTMLInputElement>)
docs/examples/allow-clear.tsx:9
Function
handleFocus
(e)
src/Input.tsx:176
Function
handleKeyDown
(e: React.KeyboardEvent<HTMLInputElement>)
src/Input.tsx:162
Function
handleKeyUp
(e: React.KeyboardEvent<HTMLInputElement>)
src/Input.tsx:169
Function
handleReset
()
tests/BaseInput.test.tsx:59
Function
inCountRange
(value: string, countConfig: ForcedCountConfig)
src/hooks/useCount.ts:14
Function
onInputClick
(e)
src/BaseInput.tsx:48
Function
onInternalChange
(e)
src/Input.tsx:146
Function
onInternalCompositionEnd
( e: React.CompositionEvent<HTMLInputElement>, )
src/Input.tsx:152