{"id":13436672,"url":"https://github.com/malte-wessel/react-custom-scrollbars","last_synced_at":"2025-05-13T18:12:13.164Z","repository":{"id":36059375,"uuid":"40358049","full_name":"malte-wessel/react-custom-scrollbars","owner":"malte-wessel","description":"React scrollbars component","archived":false,"fork":false,"pushed_at":"2024-03-01T09:47:44.000Z","size":1179,"stargazers_count":3219,"open_issues_count":220,"forks_count":579,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-05-10T01:03:57.051Z","etag":null,"topics":["customizable","react","scrollbars","scrolling"],"latest_commit_sha":null,"homepage":"http://malte-wessel.github.io/react-custom-scrollbars/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malte-wessel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-07T11:53:56.000Z","updated_at":"2025-05-06T17:01:49.000Z","dependencies_parsed_at":"2024-06-18T11:01:02.095Z","dependency_job_id":"a088d24d-b351-40cc-94de-7b061b74e472","html_url":"https://github.com/malte-wessel/react-custom-scrollbars","commit_stats":{"total_commits":241,"total_committers":25,"mean_commits":9.64,"dds":"0.29460580912863066","last_synced_commit":"b353cc4956d6154d6a100f34c3a6202c75434186"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malte-wessel%2Freact-custom-scrollbars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malte-wessel%2Freact-custom-scrollbars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malte-wessel%2Freact-custom-scrollbars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malte-wessel%2Freact-custom-scrollbars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malte-wessel","download_url":"https://codeload.github.com/malte-wessel/react-custom-scrollbars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518982,"owners_count":21921084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["customizable","react","scrollbars","scrolling"],"created_at":"2024-07-31T03:00:51.151Z","updated_at":"2025-05-13T18:12:13.112Z","avatar_url":"https://github.com/malte-wessel.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","[React](https://github.com/facebook/react/)","JavaScript","UI Components","Demos","\u003csummary\u003eUI Components\u003c/summary\u003e","React"],"sub_categories":["Uncategorized","Custom Scrollbar","React Components"],"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 \u0026 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      \u003cScrollbars style={{ width: 500, height: 300 }}\u003e\n        \u003cp\u003eSome great content...\u003c/p\u003e\n      \u003c/Scrollbars\u003e\n    );\n  }\n}\n```\n\nThe `\u003cScrollbars\u003e` 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      \u003cScrollbars\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}\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalte-wessel%2Freact-custom-scrollbars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalte-wessel%2Freact-custom-scrollbars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalte-wessel%2Freact-custom-scrollbars/lists"}