Skip to content

Commit

Permalink
feat(react): add text input type
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Jan 7, 2025
1 parent aa929a1 commit 7676518
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion driver/js/packages/hippy-react/src/components/text-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ interface TextInputProps extends LayoutableProps, ClickableProps {
/**
* The string that will be rendered before text input has been entered.
*/
placeholder?: number;
placeholder?: string;

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

/**
* Callback that is called when the text input is focused.
*/
onFocus?: () => void;

/**
* Callback that is called when text input ends.
*/
Expand Down

0 comments on commit 7676518

Please sign in to comment.