Skip to content

Commit 2677c84

Browse files
committed
feat(react): add text input type
1 parent a9b9bbc commit 2677c84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

driver/js/packages/hippy-react/src/components/text-input.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ interface TextInputProps extends LayoutableProps, ClickableProps {
116116
/**
117117
* The string that will be rendered before text input has been entered.
118118
*/
119-
placeholder?: number;
119+
placeholder?: string;
120120

121121
/**
122122
* The text color of the placeholder string.
@@ -135,6 +135,11 @@ interface TextInputProps extends LayoutableProps, ClickableProps {
135135
*/
136136
onBlur?: () => void;
137137

138+
/**
139+
* Callback that is called when the text input is focused.
140+
*/
141+
onFocus?: () => void;
142+
138143
/**
139144
* Callback that is called when text input ends.
140145
*/

0 commit comments

Comments
 (0)