{"id":15412749,"url":"https://github.com/jeetiss/tabs","last_synced_at":"2025-04-08T02:42:52.292Z","repository":{"id":39006315,"uuid":"196725951","full_name":"jeetiss/tabs","owner":"jeetiss","description":"React tabs with hooks","archived":false,"fork":false,"pushed_at":"2025-03-28T22:14:51.000Z","size":3247,"stargazers_count":208,"open_issues_count":23,"forks_count":29,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-01T01:42:39.980Z","etag":null,"topics":["hooks","react","tabs"],"latest_commit_sha":null,"homepage":"https://jeetiss.github.io/tabs/","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/jeetiss.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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":"2019-07-13T13:39:51.000Z","updated_at":"2024-12-16T01:18:21.000Z","dependencies_parsed_at":"2022-09-12T18:51:37.326Z","dependency_job_id":"a638b18b-f8ac-4bb7-8bdf-f481f9248531","html_url":"https://github.com/jeetiss/tabs","commit_stats":{"total_commits":204,"total_committers":7,"mean_commits":"29.142857142857142","dds":"0.33333333333333337","last_synced_commit":"1da05ceaed1f1247c746a16ded48d23b6eac7370"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeetiss%2Ftabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeetiss%2Ftabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeetiss%2Ftabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeetiss%2Ftabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeetiss","download_url":"https://codeload.github.com/jeetiss/tabs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767232,"owners_count":20992538,"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":["hooks","react","tabs"],"created_at":"2024-10-01T16:54:16.499Z","updated_at":"2025-04-08T02:42:52.265Z","avatar_url":"https://github.com/jeetiss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @bumaga/tabs\n\nHeadless tabs component for React\n\n## Features\n\n- 📦 super small, 381 B vs 3.5kB [react-tabs](https://github.com/reactjs/react-tabs) \n- 🚫 no styles, just logic. Style what you want, as you want\n- 🎣 components and hooks API\n\n## Install\n\n```\nnpm install @bumaga/tabs\n```\n\n```\nyarn add @bumaga/tabs\n```\n\n## Usage\n\n### With components\n\n```jsx\nimport React from 'react'\nimport { Tabs, Tab, Panel } from '@bumaga/tabs' \n\nexport default () =\u003e (\n  \u003cTabs\u003e\n    \u003cdiv\u003e\n      \u003cTab\u003e\u003cbutton\u003eTab 1\u003c/button\u003e\u003c/Tab\u003e\n      \u003cTab\u003e\u003cbutton\u003eTab 2\u003c/button\u003e\u003c/Tab\u003e\n      \u003cTab\u003e\u003cbutton\u003eTab 3\u003c/button\u003e\u003c/Tab\u003e\n    \u003c/div\u003e\n\n    \u003cPanel\u003e\u003cp\u003ePanel 1\u003c/p\u003e\u003c/Panel\u003e\n    \u003cPanel\u003e\u003cp\u003ePanel 2\u003c/p\u003e\u003c/Panel\u003e\n    \u003cPanel\u003e\u003cp\u003epanel 3\u003c/p\u003e\u003c/Panel\u003e\n  \u003c/Tabs\u003e\n);\n```\n\n### With hooks\n\n```jsx\nimport React from \"react\";\nimport { Tabs, useTabState, usePanelState } from \"@bumaga/tabs\";\n\nconst Tab = ({ children }) =\u003e {\n  const { onClick } = useTabState();\n\n  return \u003cbutton onClick={onClick}\u003e{children}\u003c/button\u003e;\n};\n\nconst Panel = ({ children }) =\u003e {\n  const isActive = usePanelState();\n\n  return isActive ? \u003cp\u003e{children}\u003c/p\u003e : null;\n};\n\nexport default () =\u003e (\n  \u003cTabs\u003e\n    \u003cdiv\u003e\n      \u003cTab\u003eTab 1\u003c/Tab\u003e\n      \u003cTab\u003eTab 2\u003c/Tab\u003e\n    \u003c/div\u003e\n\n    \u003cPanel\u003ePanel 1\u003c/Panel\u003e\n    \u003cPanel\u003ePanel 2\u003c/Panel\u003e\n  \u003c/Tabs\u003e\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeetiss%2Ftabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeetiss%2Ftabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeetiss%2Ftabs/lists"}