{"id":19306413,"url":"https://github.com/fluse/react-tab-visibility","last_synced_at":"2025-04-22T12:35:50.424Z","repository":{"id":9299702,"uuid":"61524862","full_name":"fluse/react-tab-visibility","owner":"fluse","description":"listen to browser tab visibilitychange and get inactive time","archived":false,"fork":false,"pushed_at":"2023-01-01T13:54:41.000Z","size":2334,"stargazers_count":7,"open_issues_count":24,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T21:45:27.853Z","etag":null,"topics":["component","react","react-component","reactjs","tab","visibility"],"latest_commit_sha":null,"homepage":"https://fluse.github.io/react-tab-visibility/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-20T07:15:16.000Z","updated_at":"2022-03-06T12:54:26.000Z","dependencies_parsed_at":"2023-01-13T15:16:24.258Z","dependency_job_id":null,"html_url":"https://github.com/fluse/react-tab-visibility","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Freact-tab-visibility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Freact-tab-visibility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Freact-tab-visibility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Freact-tab-visibility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluse","download_url":"https://codeload.github.com/fluse/react-tab-visibility/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223634062,"owners_count":17176877,"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":["component","react","react-component","reactjs","tab","visibility"],"created_at":"2024-11-10T00:05:59.663Z","updated_at":"2024-11-10T00:06:00.181Z","avatar_url":"https://github.com/fluse.png","language":"JavaScript","funding_links":["https://www.paypal.me/schauf"],"categories":[],"sub_categories":[],"readme":"# react-tab-visbility\n\nsupports react 15.x and 16.x\n\nuse react-tab-visibility for browser tab activity informations.\n\nGet informed on tab change\nGet time of inactivity after reactivation\n\n**[Watch Demo](https://fluse.github.io/react-tab-visibility/)**\n\n## Install\n\n```\nnpm install react-tab-visibility --save\n```\n\n## How to use\n\n```jsx\n\nimport TabVisibility from 'react-tab-visibility'\n\nclass YourComponent extends TabVisibility {\n    \n    onTabVisibilityChange({ isTabVisible, hiddenTime }) {\n        \n        this.setState({ isTabVisible })\n        \n        console.log(isTabVisible, hiddenTime)\n    }\n}\n\n```\n\n## Development\n\nif you want to add or optimize this component, feel free \u003c3\n\nclone this repository and run install\n\n```\nnpm install\n```\n\nstart dev server\n\n```\nnpm start\n```\n\nmake your changes and build new es5 friendly version\n\n```\nnpm run build\n```\n\n## Give me a coffee\n\n[![Donate](https://img.shields.io/badge/donate-%20%E2%9D%A4%20-green.svg)](https://www.paypal.me/schauf)\n\n[get in touch?](http://www.holger-schauf.de)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluse%2Freact-tab-visibility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluse%2Freact-tab-visibility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluse%2Freact-tab-visibility/lists"}