{"id":15694539,"url":"https://github.com/makotot/react-tabbed","last_synced_at":"2025-03-30T13:15:58.085Z","repository":{"id":66236854,"uuid":"141312853","full_name":"makotot/react-tabbed","owner":"makotot","description":"Tab component with render props.","archived":false,"fork":false,"pushed_at":"2018-07-25T15:46:57.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T04:47:55.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/makotot.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-17T16:00:21.000Z","updated_at":"2018-07-25T15:46:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"78ab1823-8740-4f4c-9d03-415821922d4d","html_url":"https://github.com/makotot/react-tabbed","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makotot%2Freact-tabbed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makotot%2Freact-tabbed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makotot%2Freact-tabbed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makotot%2Freact-tabbed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makotot","download_url":"https://codeload.github.com/makotot/react-tabbed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246320198,"owners_count":20758410,"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":[],"created_at":"2024-10-03T19:00:20.993Z","updated_at":"2025-03-30T13:15:58.065Z","avatar_url":"https://github.com/makotot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003cTabbed /\u003e`\n\n[![travis](http://img.shields.io/travis/makotot/react-tabbed.svg?style=flat-square)](https://travis-ci.org/makotot/react-tabbed)\n[![License](http://img.shields.io/npm/l/@makotot/react-tabbed.svg?style=flat-square)](https://github.com/makotot/react-tabbed)\n\n\u003e Tab component with render props.\n\n\n## Install\n\n```sh\n$ npm i react-tabbed\n```\n\n\n## Usage\n\n```js\nimport Tabbed from 'react-tabbed'\n\n\u003cTabbed\n  render={\n    ({ getTabProps, isActiveTab, setActiveTab }) =\u003e {\n      return (\n        \u003cdiv\u003e\n          \u003cnav\u003e\n            \u003ca\n              href=\"#\"\n              {\n                ...getTabProps({\n                  index: 0,\n                  onClick: (e) =\u003e { e.preventDefault(); console.log(this) },\n                })\n              }\n              style={{ color: isActiveTab(0) ? '#f00' : '#000' }}\n            \u003etab 1\u003c/a\u003e\n            \u003ca href=\"#\" { ...getTabProps({ index: 1 }) } style={{ color: isActiveTab(1) ? '#f00' : '#000' }}\u003etab 2\u003c/a\u003e\n            \u003ca href=\"#\" { ...getTabProps({ index: 2 }) } style={{ color: isActiveTab(2) ? '#f00' : '#000' }}\u003etab 3\u003c/a\u003e\n          \u003c/nav\u003e\n          \u003cdiv\u003e\n            { isActiveTab(0) \u0026\u0026 \u003cdiv\u003e1\u003c/div\u003e }\n            { isActiveTab(1) \u0026\u0026 \u003cdiv\u003e2\u003c/div\u003e }\n            { isActiveTab(2) \u0026\u0026 \u003cdiv\u003e3\u003c/div\u003e }\n          \u003c/div\u003e\n        \u003c/div\u003e\n      )\n    }\n  }\n/\u003e\n```\n\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakotot%2Freact-tabbed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakotot%2Freact-tabbed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakotot%2Freact-tabbed/lists"}