Skip to content

Commit 92eb3f3

Browse files
committed
feat(Input): Add additional key and mouse events
1 parent 8b5ebad commit 92eb3f3

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/components/ui/input/input.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { ChangeEvent, Dispatch, KeyboardEvent, FocusEventHandler } from "react"
1+
import {
2+
ChangeEvent,
3+
Dispatch,
4+
KeyboardEvent,
5+
FocusEventHandler,
6+
MouseEvent,
7+
} from "react"
28

39
import {
410
AlertKind,
@@ -27,6 +33,9 @@ export type InputProps = RefProp<HTMLInputElement> &
2733

2834
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void
2935
onKeyDown?: Dispatch<KeyboardEvent<HTMLInputElement>>
36+
onKeyUp?: Dispatch<KeyboardEvent<HTMLInputElement>>
37+
onMouseDown?: Dispatch<MouseEvent<HTMLInputElement>>
38+
onMouseUp?: Dispatch<MouseEvent<HTMLInputElement>>
3039
onFocus?: FocusEventHandler<HTMLInputElement>
3140
onBlur?: FocusEventHandler<HTMLInputElement>
3241
}

0 commit comments

Comments
 (0)