Skip to content

Commit 3d131ad

Browse files
glenjamindavidnpma
authored andcommitted
Document the style prop
docs: style property
1 parent 6a8783d commit 3d131ad

File tree

3 files changed

+5
-45
lines changed

3 files changed

+5
-45
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ type of sourcemaps. You can choose to not display them with this flag.
5959
`useColumns` `[boolean=true]` Column numbers in the stack trace may be unreliable depending on the
6060
type of sourcemaps. You can choose to not display them with this flag.
6161

62+
`style` `[?object]` Allows you to override the styles used when rendering the various parts of the
63+
component. It will be shallow-merged with the [default styles](./src/style.js).
64+
6265
If using [react-transform-catch-errors](https://github.com/gaearon/react-transform-catch-errors#installation) you can add these options to your `.babelrc` through the [`imports` property](https://github.com/gaearon/react-transform-catch-errors#installation).
6366

6467
## Sourcemaps with Webpack

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export default class RedBox extends Component {
1010
filename: PropTypes.string,
1111
editorScheme: PropTypes.string,
1212
useLines: PropTypes.bool,
13-
useColumns: PropTypes.bool
13+
useColumns: PropTypes.bool,
14+
style: PropTypes.object,
1415
}
1516
static displayName = 'RedBox'
1617
static defaultProps = {

src/redbox.css

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)