react-highlight-words
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -93,2 +93,3 @@ module.exports = | ||
autoEscape: _react.PropTypes.bool, | ||
className: _react.PropTypes.string, | ||
highlightClassName: _react.PropTypes.string, | ||
@@ -113,2 +114,3 @@ highlightTag: _react.PropTypes.string, | ||
var autoEscape = _ref.autoEscape; | ||
var className = _ref.className; | ||
var _ref$highlightClassName = _ref.highlightClassName; | ||
@@ -136,3 +138,3 @@ var highlightClassName = _ref$highlightClassName === undefined ? '' : _ref$highlightClassName; | ||
'span', | ||
null, | ||
{ className: className }, | ||
chunks.map(function (chunk, index) { | ||
@@ -139,0 +141,0 @@ var text = textToHighlight.substr(chunk.start, chunk.end - chunk.start); |
{ | ||
"name": "react-highlight-words", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "React component to highlight words within a larger body of text", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -30,2 +30,3 @@ <img src="https://cloud.githubusercontent.com/assets/29597/11913937/0d2dcd78-a629-11e5-83e7-6a17b6d765a5.png" width="260" height="260"> | ||
| activeIndex | String | | Specify the match index that should be actively highlighted. Use along with `activeClassName` | | ||
| className | String | | CSS class name applied to the outer/wrapper `<span>` | | ||
| highlightClassName | String | | CSS class name applied to highlighted text | | ||
@@ -32,0 +33,0 @@ | highlightStyle | Object | | Inline styles applied to highlighted text | |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2483795
1231
45