Skip to content

Commit

Permalink
Merge pull request #20 from jankoritak/feature/exhaustive-styles-over…
Browse files Browse the repository at this point in the history
…ride

Feature/exhaustive styles override
  • Loading branch information
jvorcak authored Jul 30, 2020
2 parents d8b6cb2 + 256c6b9 commit ecb79c8
Show file tree
Hide file tree
Showing 6 changed files with 31,307 additions and 45 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,23 @@ https://webscopeio.github.io/react-console/

| Props | Type | Description |
| :--------------------- | :-------------------------------------------------------------------- |:--------------|
| **commands*** | Object |
| **commands*** | **CommandsProp** |
| prompt | string |
| welcomeMessage | string |
| autoFocus | boolean|
| noCommandFound | (...str: string[]) => Promise<string> |
| wrapperStyle | Object | styles for the wrapper |
| promptStyle | Object | styles for the prompt |
| inputStyle | Object | styles for the input |
| wrapperClassName | string | className for the wrapper |
| promptClassName | string | className for the prompt |
| inputClassName | string | className for the input |
| history | Array<string> | history array |
| onAddHistoryItem | (entry: string) => void | callback called when a new history entry should be created |
| wrapperStyle | React.CSSProperties | styles for `wrapper` |
| promptWrapperStyle | React.CSSProperties | styles for `promptWrapper` |
| promptStyle | React.CSSProperties | styles for `prompt` |
| lineStyle | React.CSSProperties | styles for `line` |
| inputStyle | React.CSSProperties | styles for `input |
| wrapperClassName | string | className for `wrapper` |
| promptWrapperClassName | string | className for `promptWrapper` |
| promptClassName | string | className for `prompt` |
| lineClassName | string | className for `line` |
| inputClassName | string | className for `input` |
| history | string[] | history array |
| onAddHistoryItem | (entry: string) => void | callback called when a new history entry is created |

\*_are mandatory_

Expand Down
Loading

0 comments on commit ecb79c8

Please sign in to comment.