Skip to content

Commit

Permalink
Documentation - Update props.onInput documentation in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmbake committed Nov 23, 2023
1 parent eb61b2c commit 0a8e3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const TerminalController = (props = {}) => {
| ------------------- | ------------- |
| name | Name of the terminal. Displays at the top of the rendered component. In the demo, the name is set to _React Terminal UI_. |
| colorMode | Terminal color mode - either Light or Dark. Defaults to Dark. |
| onInput | A callback function that is invoked when a user presses enter on the prompt. The function is passed the current prompt input. |
| onInput | An optional callback function that is invoked when a user presses enter on the prompt. The function is passed the current prompt input. If the `onInput` prop is not passed, the prompt input line will not display in the terminal. |
| startingInputValue | Starting input value. If this prop changes, any user-entered input will be overridden by this value. Defaults to the empty string (""). |
| prompt | The prompt character. Defaults to '$'. |
| height | Height of the terminal. Defaults to 600px. |
Expand Down

0 comments on commit 0a8e3d7

Please sign in to comment.