@@ -25,19 +25,23 @@ https://webscopeio.github.io/react-console/
25
25
26
26
| Props | Type | Description |
27
27
| :--------------------- | :-------------------------------------------------------------------- | :--------------|
28
- | ** commands*** | Object |
28
+ | ** commands*** | ** CommandsProp ** |
29
29
| prompt | string |
30
30
| welcomeMessage | string |
31
31
| autoFocus | boolean|
32
32
| noCommandFound | (...str: string[ ] ) => Promise<string > |
33
- | wrapperStyle | Object | styles for the wrapper |
34
- | promptStyle | Object | styles for the prompt |
35
- | inputStyle | Object | styles for the input |
36
- | wrapperClassName | string | className for the wrapper |
37
- | promptClassName | string | className for the prompt |
38
- | inputClassName | string | className for the input |
39
- | history | Array<string > | history array |
40
- | onAddHistoryItem | (entry: string) => void | callback called when a new history entry should be created |
33
+ | wrapperStyle | React.CSSProperties | styles for ` wrapper ` |
34
+ | promptWrapperStyle | React.CSSProperties | styles for ` promptWrapper ` |
35
+ | promptStyle | React.CSSProperties | styles for ` prompt ` |
36
+ | lineStyle | React.CSSProperties | styles for ` line ` |
37
+ | inputStyle | React.CSSProperties | styles for `input |
38
+ | wrapperClassName | string | className for ` wrapper ` |
39
+ | promptWrapperClassName | string | className for ` promptWrapper ` |
40
+ | promptClassName | string | className for ` prompt ` |
41
+ | lineClassName | string | className for ` line ` |
42
+ | inputClassName | string | className for ` input ` |
43
+ | history | string[ ] | history array |
44
+ | onAddHistoryItem | (entry: string) => void | callback called when a new history entry is created |
41
45
42
46
\* _ are mandatory_
43
47
0 commit comments