You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| name | Name of the terminal. Displays at the top of the rendered component. In the demo, the name is set to _React Terminal UI_. |
51
-
| colorMode | Terminal color mode - either Light or Dark. Defaults to Dark. |
52
-
| 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. |
53
-
| startingInputValue | Starting input value. If this prop changes, any user-entered input will be overridden by this value. Defaults to the empty string (""). |
54
-
| prompt | The prompt character. Defaults to '$'. |
55
-
| height | Height of the terminal. Defaults to 600px. |
56
-
| redBtnCallback | Optional callback function for the red button. If provided, the function will be invoked when the red button is clicked. |
57
-
| yellowBtnCallback | Optional callback function for the yellow button. If provided, the function will be invoked when the yellow button is clicked. |
58
-
| greenBtnCallback | Optional callback function for the green button. If provided, the function will be invoked when the green button is clicked. |
|`name`| Name of the terminal. Displays at the top of the rendered component. In the demo, the name is set to React Terminal UI. |
56
+
|`colorMode`| Terminal color mode - either Light or Dark. Defaults to Dark. |
57
+
|`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. |
58
+
|`startingInputValue`| Starting input value. If this prop changes, any user-entered input will be overridden by this value. Defaults to the empty string (""). |
59
+
|`prompt`| The prompt character. Defaults to '$'. |
60
+
|`height`| Height of the terminal. Defaults to 600px. |
61
+
|`redBtnCallback`| Optional callback function for the red button. If provided, the function will be invoked when the red button is clicked. |
62
+
|`yellowBtnCallback`| Optional callback function for the yellow button. If provided, the function will be invoked when the yellow button is clicked. |
63
+
|`greenBtnCallback`| Optional callback function for the green button. If provided, the function will be invoked when the green button is clicked. |
64
+
|`TopButtonsPanel`| Optional - way to control which buttons are displays in top buttons panel. Pass `TopButtonsPanel={()=> null}` to hide top buttons panel. |
0 commit comments