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
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,10 @@ with valid JSX elements.
172
172
173
173
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).
174
174
175
+
|Name|PropType|Description|
176
+
|---|---|---|
177
+
|style|PropTypes.object|Allows overriding default styles on the `LiveEditor` component.
178
+
175
179
176
180
### <LiveError />
177
181
@@ -199,12 +203,12 @@ desired behavior.
199
203
200
204
The component wrapped with `withLive` gets injected the following props:
201
205
202
-
|Name|Type|Description|
206
+
|Name|PropType|Description|
203
207
|---|---|---|
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
208
212
|element|React.Element|The result of the transpiled code that is previewed
0 commit comments