{"name":"react-custom-scrollbars","version":"0.1.5","description":"React scrollbars component","main":"lib/index.js","scripts":{"clean":"rimraf lib dist","build":"babel src --out-dir lib","build:umd":"webpack src/index.js dist/react-custom-scrollbars.js && NODE_ENV=production webpack src/index.js dist/react-custom-scrollbars.min.js","lint":"eslint src test examples","test":"NODE_ENV=test mocha --compilers js:babel/register --recursive","test:watch":"NODE_ENV=test mocha --compilers js:babel/register --recursive --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive","prepublish":"npm run lint && npm run test && npm run clean && npm run build && npm run build:umd"},"repository":{"type":"git","url":"https://github.com/malte-wessel/react-custom-scrollbars.git"},"keywords":["scroll","scroller","scrollbars","react","custom"],"author":{"name":"Malte Wessel"},"license":"MIT","bugs":{"url":"https://github.com/malte-wessel/react-custom-scrollbars/issues"},"homepage":"https://github.com/malte-wessel/react-custom-scrollbars","devDependencies":{"babel":"^5.5.8","babel-core":"^5.6.18","babel-eslint":"^3.1.15","babel-loader":"^5.1.4","eslint":"^0.23","eslint-config-airbnb":"0.0.6","eslint-plugin-react":"^2.3.0","expect":"^1.6.0","isparta":"^3.0.3","mocha":"^2.2.5","react":"^0.14.0-beta3","react-dom":"^0.14.0-beta3","rimraf":"^2.3.4","webpack":"^1.9.6","webpack-dev-server":"^1.8.2"},"peerDependencies":{"react":"^0.14.0-beta3","react-dom":"^0.14.0-beta3"},"dependencies":{},"gitHead":"443db89654e6da2652b7a4e556a37e8480c048b5","_id":"react-custom-scrollbars@0.1.5","_shasum":"0b0b7badbe7baaf395cd52f7103e5397ae69bc83","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.0","_npmUser":{"name":"malte-wessel","email":"delabreak@gmail.com"},"maintainers":[{"name":"malte-wessel","email":"delabreak@gmail.com"}],"dist":{"shasum":"0b0b7badbe7baaf395cd52f7103e5397ae69bc83","tarball":"http://registry-npm.ywwl.com/react-custom-scrollbars/download/react-custom-scrollbars-0.1.5.tgz","integrity":"sha512-ZX0B9F2Sm5ZYw+oDa7gwSECc8GV24/gJyVXowRqLoHLNbF3YYAzzZuwUp0CPHIpq6bFAtUtpMKxoZ0Dnci+0qQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGdG5seNv5jQummSCKfVs8slnhBqRusNwiSdgxMFeN7yAiEAk3/xsqwnPsaBMkP1xLiyIdnt5BjtF9wGvVrMr20sziY="}],"size":192222,"noattachment":false,"key":"/react-custom-scrollbars/-/react-custom-scrollbars-0.1.5.tgz"},"directories":{},"readme":"react-custom-scrollbars\n=========================\n\n[![npm](https://img.shields.io/badge/npm-react--custom--scrollbars-brightgreen.svg?style=flat-square)]()\n[![npm version](https://img.shields.io/npm/v/react-custom-scrollbars.svg?style=flat-square)](https://www.npmjs.com/package/react-custom-scrollbars)\n[![npm downloads](https://img.shields.io/npm/dm/react-custom-scrollbars.svg?style=flat-square)](https://www.npmjs.com/package/react-custom-scrollbars)\n\n* frictionless native browser scrolling\n* native scrollbars for mobile devices\n* [fully customizable](https://github.com/malte-wessel/react-custom-scrollbars/blob/master/docs/customization.md)\n* [auto hide](https://github.com/malte-wessel/react-custom-scrollbars/blob/master/docs/usage.md#auto-hide)\n* [auto height](https://github.com/malte-wessel/react-custom-scrollbars/blob/master/docs/usage.md#auto-height)\n* [universal](https://github.com/malte-wessel/react-custom-scrollbars/blob/master/docs/usage.md#universal-rendering) (runs on client & server)\n* `requestAnimationFrame` for 60fps\n* no extra stylesheets\n* well tested, 100% code coverage\n\n**[Demos](http://malte-wessel.github.io/react-custom-scrollbars/) · [Documentation](https://github.com/malte-wessel/react-custom-scrollbars/tree/master/docs)**\n\n## Installation\n```bash\nnpm install react-custom-scrollbars --save\n```\n\nThis assumes that you’re using [npm](http://npmjs.com/) package manager with a module bundler like [Webpack](http://webpack.github.io) or [Browserify](http://browserify.org/) to consume [CommonJS modules](http://webpack.github.io/docs/commonjs.html).\n\nIf you don’t yet use [npm](http://npmjs.com/) or a modern module bundler, and would rather prefer a single-file [UMD](https://github.com/umdjs/umd) build that makes `ReactCustomScrollbars` available as a global object, you can grab a pre-built version from [unpkg](https://unpkg.com/react-custom-scrollbars@3.0.1/dist/react-custom-scrollbars.js). We *don’t* recommend this approach for any serious application, as most of the libraries complementary to `react-custom-scrollbars` are only available on [npm](http://npmjs.com/).\n\n## Usage\n\nThis is the minimal configuration. [Check out the Documentation for advanced usage](https://github.com/malte-wessel/react-custom-scrollbars/tree/master/docs).\n\n```javascript\nimport { Scrollbars } from 'react-custom-scrollbars';\n\nclass App extends Component {\n  render() {\n    return (\n      <Scrollbars style={{ width: 500, height: 300 }}>\n        <p>Some great content...</p>\n      </Scrollbars>\n    );\n  }\n}\n```\n\nThe `<Scrollbars>` component is completely customizable. Check out the following code:\n\n```javascript\nimport { Scrollbars } from 'react-custom-scrollbars';\n\nclass CustomScrollbars extends Component {\n  render() {\n    return (\n      <Scrollbars\n        onScroll={this.handleScroll}\n        onScrollFrame={this.handleScrollFrame}\n        onScrollStart={this.handleScrollStart}\n        onScrollStop={this.handleScrollStop}\n        onUpdate={this.handleUpdate}\n        renderView={this.renderView}\n        renderTrackHorizontal={this.renderTrackHorizontal}\n        renderTrackVertical={this.renderTrackVertical}\n        renderThumbHorizontal={this.renderThumbHorizontal}\n        renderThumbVertical={this.renderThumbVertical}\n        autoHide\n        autoHideTimeout={1000}\n        autoHideDuration={200}\n        autoHeight\n        autoHeightMin={0}\n        autoHeightMax={200}\n        thumbMinSize={30}\n        universal={true}\n        {...this.props}>\n    );\n  }\n}\n```\n\nAll properties are documented in the [API docs](https://github.com/malte-wessel/react-custom-scrollbars/blob/master/docs/API.md)\n\n## Examples\n\nRun the simple example:\n```bash\n# Make sure that you've installed the dependencies\nnpm install\n# Move to example directory\ncd react-custom-scrollbars/examples/simple\nnpm install\nnpm start\n```\n\n## Tests\n```bash\n# Make sure that you've installed the dependencies\nnpm install\n# Run tests\nnpm test\n```\n\n### Code Coverage\n```bash\n# Run code coverage. Results can be found in `./coverage`\nnpm run test:cov\n```\n\n\n## License\n\nMIT\n","publish_time":1439022653311,"_cnpm_publish_time":1439022653311,"dist-tags":{"latest":"4.2.1"}}