Skip to content

Commit

Permalink
Document the style prop
Browse files Browse the repository at this point in the history
docs: style property
  • Loading branch information
glenjamin authored and davidnpma committed Apr 7, 2016
1 parent 6a8783d commit 3d131ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 45 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ type of sourcemaps. You can choose to not display them with this flag.
`useColumns` `[boolean=true]` Column numbers in the stack trace may be unreliable depending on the
type of sourcemaps. You can choose to not display them with this flag.

`style` `[?object]` Allows you to override the styles used when rendering the various parts of the
component. It will be shallow-merged with the [default styles](./src/style.js).

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).

## Sourcemaps with Webpack
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default class RedBox extends Component {
filename: PropTypes.string,
editorScheme: PropTypes.string,
useLines: PropTypes.bool,
useColumns: PropTypes.bool
useColumns: PropTypes.bool,
style: PropTypes.object,
}
static displayName = 'RedBox'
static defaultProps = {
Expand Down
44 changes: 0 additions & 44 deletions src/redbox.css

This file was deleted.

0 comments on commit 3d131ad

Please sign in to comment.