Skip to content

Commit d01e04c

Browse files
authored
Update README.md
1 parent c4eee2c commit d01e04c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ with valid JSX elements.
172172

173173
This component renders the editor that displays the code. It is a wrapper around [`react-simple-code-editor`](https://github.com/satya164/react-simple-code-editor) and the code highlighted using [`prism-react-renderer`](https://github.com/FormidableLabs/prism-react-renderer).
174174

175+
|Name|PropType|Description|
176+
|---|---|---|
177+
|style|PropTypes.object|Allows overriding default styles on the `LiveEditor` component.
178+
175179

176180
### <LiveError />
177181

@@ -199,12 +203,12 @@ desired behavior.
199203

200204
The component wrapped with `withLive` gets injected the following props:
201205

202-
|Name|Type|Description|
206+
|Name|PropType|Description|
203207
|---|---|---|
204-
|code|string|Reflects the code that is passed in as the `code` prop
205-
|error|string|An error that the code has thrown when it was previewed
206-
|onError|function|A callback that, when called, changes the error to what's passed as the first argument
207-
|onChange|function|A callback that accepts new code and transpiles it
208+
|code|PropTypes.string|Reflects the code that is passed in as the `code` prop
209+
|error|PropTypes.string|An error that the code has thrown when it was previewed
210+
|onError|PropTypes.func|A callback that, when called, changes the error to what's passed as the first argument
211+
|onChange|PropTypes.func|A callback that accepts new code and transpiles it
208212
|element|React.Element|The result of the transpiled code that is previewed
209213

210214

0 commit comments

Comments
 (0)