{"id":25002288,"url":"https://github.com/en-atul/react-tabs","last_synced_at":"2025-03-29T21:14:24.387Z","repository":{"id":54464318,"uuid":"522317844","full_name":"en-atul/react-tabs","owner":"en-atul","description":"react tab navigation","archived":false,"fork":false,"pushed_at":"2022-09-12T09:39:01.000Z","size":3951,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T07:29:23.801Z","etag":null,"topics":["tab","tabnavigation"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/atul15r-react-tab-mdnzqn","language":"TypeScript","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/en-atul.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":"2022-08-07T20:30:48.000Z","updated_at":"2023-03-08T15:16:34.000Z","dependencies_parsed_at":"2022-08-13T16:30:37.813Z","dependency_job_id":null,"html_url":"https://github.com/en-atul/react-tabs","commit_stats":null,"previous_names":["en-atul/react-tabs","atul15r/react-tabs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en-atul%2Freact-tabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en-atul%2Freact-tabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en-atul%2Freact-tabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en-atul%2Freact-tabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/en-atul","download_url":"https://codeload.github.com/en-atul/react-tabs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246243553,"owners_count":20746311,"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":["tab","tabnavigation"],"created_at":"2025-02-04T21:50:25.774Z","updated_at":"2025-03-29T21:14:24.367Z","avatar_url":"https://github.com/en-atul.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## React Tabs\n\n\u003c!-- ![Build](https://github.com/atul15r/react-tabs/actions/workflows/main.yml/badge.svg) --\u003e\n![Download](https://img.shields.io/npm/dt/@atul15r/react-tabs.svg)\n\n**React-Tabs is an animated tab navigation component which is designed for react\napp.**\n\n**[Live Demo](https://codesandbox.io/s/atul15r-react-tabs-mdnzqn)**\n\n![Alt text](visual/react-tabs.gif?raw=true 'React Tabs')\n\n# Installation\n\n```js\n # If you use npm:\n npm i @atul15r/react-tabs\n\n # If you use yarn:\n yarn add @atul15r/react-tabs\n\n\n ES6 Usage\n import { Tabs } from '@atul15r/react-tabs';\n\n Commonjs Usage\n var Tabs = require('@atul15r/react-tabs');\n\n```\n\n# Quick Start\n\n```js\n\u003cTabs tabs={tabs} /\u003e\n```\n\n# Usage With Custom Styles\n\n```js\n\nimport React from 'react';\nimport { Tabs } from '@atul15r/react-tabs';\n\nconst tabs = [\n  {\n    title: \"TypeScript\",\n\n  {\n    title: \"JavaScript\",\n\n  },\n];\n\n\nconst App = () =\u003e {\n  return (\n   \u003cTabs\n tabs={tabs}\n tabStyle={{\n         background: `#fff`,\n         font-weight: 500,\n         color: \"#333\"\n }}\n/\u003e\n  );\n};\n\nexport default App;\n\n```\n\n# Props\n\n| name            | type     | required | default   | description                                                    |\n| --------------- | -------- | -------- | --------- | -------------------------------------------------------------- |\n| tabs            | array    | true     | []        | it takes an array of object `{ title: string \\| ReactNode }[]` |\n| tabsClassName   | string   | false    | undefined | add any custom class you want                                  |\n| tabsStyle       | object   | false    | undefined | `wrapperStyle= {{ background:\"#ccc\", color:\"#999\", ...etc }}`  |\n| tabClassName    | string   | false    | undefined | add any custom class you want                                  |\n| tabStyle        | object   | false    | undefined | ` itemStyle= {{ padding:4, }}`                                 |\n| borderStyle     | object   | false    | undefined | `borderStyle= {{ background:#6b6b6b, }}`                       |\n| borderClassName | string   | false    | undefined | add any custom class you want                                  |\n| onChange        | function | false    | undefined | ` onChange={(tabIndex)=\u003esetCurrentTab(tabIndex)}`              |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fen-atul%2Freact-tabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fen-atul%2Freact-tabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fen-atul%2Freact-tabs/lists"}