UNPKG
rc-input-number-modern
Version:
latest (9.1.0)
9.1.0
React input-number component
github.com/react-component/input-number
react-component/input-number
rc-input-number-modern
/
lib
/
hooks
/
useCursor.d.ts
6 lines
(5 loc)
•
245 B
TypeScript
View Raw
1
2
3
4
5
6
/** * Keep input cursor in the correct position if possible. * Is this necessary since we have `formatter` which may mass the content? */
export
default
function
useCursor
(
input: HTMLInputElement, focused: boolean
): [
() =>
void
,
() =>
void
];