diff --git a/README.md b/README.md index e1486c5..4e8a331 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,10 @@ HTML tag for Scrollspy component if you want to use other than `ul` [optional]. Style attribute to be passed to the generated <ul/> element [optional]. +### `offset={ Number }` + +Offset value that adjusts to determine the elements are in the viewport. + ## Development ```sh diff --git a/src/js/app.jsx b/src/js/app.jsx index 9092ff1..2d0d620 100644 --- a/src/js/app.jsx +++ b/src/js/app.jsx @@ -11,6 +11,8 @@ const App = React.createClass({ minHeight: '600px', } + const version = require('../../package.json').version + return (
@@ -19,7 +21,13 @@ const App = React.createClass({

react
scrollspy