{"id":19617794,"url":"https://github.com/nzambello/react-scrolltop","last_synced_at":"2026-05-16T03:06:05.578Z","repository":{"id":35144981,"uuid":"212587814","full_name":"nzambello/react-scrolltop","owner":"nzambello","description":"React component that adds a 'scroll to top' button.","archived":false,"fork":false,"pushed_at":"2023-01-04T22:05:25.000Z","size":473,"stargazers_count":1,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T02:05:14.665Z","etag":null,"topics":["javascript","library","react","reactjs","scroll","scroll-to-top"],"latest_commit_sha":null,"homepage":null,"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/nzambello.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-03T13:31:23.000Z","updated_at":"2021-07-15T07:57:33.000Z","dependencies_parsed_at":"2023-01-15T14:45:25.106Z","dependency_job_id":null,"html_url":"https://github.com/nzambello/react-scrolltop","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzambello%2Freact-scrolltop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzambello%2Freact-scrolltop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzambello%2Freact-scrolltop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzambello%2Freact-scrolltop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nzambello","download_url":"https://codeload.github.com/nzambello/react-scrolltop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240831380,"owners_count":19864718,"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":["javascript","library","react","reactjs","scroll","scroll-to-top"],"created_at":"2024-11-11T11:07:17.773Z","updated_at":"2026-05-16T03:06:05.390Z","avatar_url":"https://github.com/nzambello.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-scrolltop\n\n[![license](https://img.shields.io/github/license/nzambello/react-scrolltop.svg)](https://github.com/nzambello/react-scrolltop/blob/master/LICENSE)\n[![npm version](https://badge.fury.io/js/%40nzambello%2Freact-scrolltop.svg)](https://www.npmjs.com/package/@nzambello/react-scrolltop)\n[![npm](https://img.shields.io/npm/dt/%40nzambello%2Freact-scrolltop.svg)](https://www.npmjs.com/package/@nzambello/react-scrolltop)\n\nReact component that adds a 'scroll to top' button fixed on the bottom of the page and shown if not scrolled up.\n\nYou can try it out in a [demo on Codesandbox](https://codesandbox.io/embed/ecstatic-night-9il6f).\n\n## Installation\n\nInstall the package with either yarn or npm.\n\nWith yarn:\n\n```sh\nyarn add @nzambello/react-scrolltop\n```\n\nWith npm:\n\n```sh\nnpm install --save @nzambello/react-scrolltop\n```\n\n## Usage\n\n```js\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport ScrollTop from '@nzambello/react-scrolltop'\n\nconst App = () =\u003e (\n  ...\n  \u003cScrollTop /\u003e\n)\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById('root'))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzambello%2Freact-scrolltop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnzambello%2Freact-scrolltop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzambello%2Freact-scrolltop/lists"}