{"id":22370227,"url":"https://github.com/itzvinoth/r-tiny-tabs","last_synced_at":"2026-04-29T22:42:37.774Z","repository":{"id":65478614,"uuid":"203142922","full_name":"itzvinoth/r-tiny-tabs","owner":"itzvinoth","description":"Reactjs wrapper for tinytabs library -","archived":false,"fork":false,"pushed_at":"2019-08-20T07:22:07.000Z","size":197,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-29T16:09:43.708Z","etag":null,"topics":["react","react-component","react-components","reactjs"],"latest_commit_sha":null,"homepage":"https://github.com/knadh/tinytabs","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/itzvinoth.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":"2019-08-19T09:36:58.000Z","updated_at":"2023-05-22T07:19:53.000Z","dependencies_parsed_at":"2023-01-25T07:55:13.747Z","dependency_job_id":null,"html_url":"https://github.com/itzvinoth/r-tiny-tabs","commit_stats":null,"previous_names":["mevinoth/r-tiny-tabs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itzvinoth/r-tiny-tabs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fr-tiny-tabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fr-tiny-tabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fr-tiny-tabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fr-tiny-tabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzvinoth","download_url":"https://codeload.github.com/itzvinoth/r-tiny-tabs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fr-tiny-tabs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32447305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["react","react-component","react-components","reactjs"],"created_at":"2024-12-04T19:37:07.432Z","updated_at":"2026-04-29T22:42:37.751Z","avatar_url":"https://github.com/itzvinoth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Tinytabs\nReactjs wrapper for [`Tinytabs`](https://github.com/knadh/tinytabs) which is a super tiny javascript plugin for rendering tabs (\u003c 2KB).\n\nDocumentation and Demo: https://react-tiny-tabs.netlify.com\n\n![vtt](https://user-images.githubusercontent.com/1731965/63014487-4d2da480-beac-11e9-9866-0673cd10635b.png)\n\n\nFind the npm package [`link`](https://www.npmjs.com/package/r-tiny-tabs)\n\n# Install and basic usage\n```sh\n$ npm install r-tiny-tabs\n```\n\n# Example\n```jsx\nonHandleBefore (id) {\n    console.log('handle before', id)\n  }\n\n  onHandleAfter (id) {\n    console.log('handle after', id)\n  }\n\n  onHandleClose (id) {\n    console.log('handle close', id)\n  }\n\n  render() {\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003cReactTinyTabs id=\"mytbs\" anchor={false} closable={true} hideTitle={false} onBefore={this.onHandleBefore} onAfter={this.onHandleAfter} onClose={this.onHandleClose}\u003e\n          \u003cdiv className=\"section\" id=\"example\"\u003e\n            \u003ch3 className=\"title\"\u003eExample code\u003c/h3\u003e\n            \u003ch3\u003eJavascript\u003c/h3\u003e\n          \u003c/div\u003e\n          \u003cdiv className=\"section\" id=\"options\"\u003e\n            \u003ch3 className=\"title\"\u003eOptions table\u003c/h3\u003e\n            \u003ch3\u003eOptions\u003c/h3\u003e\n          \u003c/div\u003e\n          \u003cdiv className=\"section\" id=\"components\"\u003e\n            \u003ch3 className=\"title\"\u003eComponents\u003c/h3\u003e\n            \u003ch3\u003eOptions\u003c/h3\u003e\n          \u003c/div\u003e\n        \u003c/ReactTinyTabs\u003e\n      \u003c/div\u003e\n    )\n  }\n```\n\n### Customized CSS for styling\n```css\n.tinytabs .tabs {\n\tmargin-left: 15px;\n\tdisplay: flex;\n\tflex-flow: row wrap;\n}\n.tinytabs .tabs .tab .close {\n\tpadding-left: 5px;\n}\n.tinytabs .tabs .tab {\n\tmargin: 0 3px 0 0;\n\tbackground: #e1e1e1;\n\tdisplay: block;\n\tpadding: 6px 15px;\n\ttext-decoration: none;\n\tcolor: #666;\n\tfont-weight: bold;\n\tborder-radius: 3px 3px 0 0;\n}\n.tinytabs .section {\n\tbackground: #f1f1f1;\n\toverflow: hidden;\n\tpadding: 15px;\n\tclear: both;\n\tborder-radius: 3px;\n}\n.tinytabs .tab.sel {\n\tbackground: #f1f1f1;\n\tcolor: #333;\n\ttext-shadow: none;\n}\n```\n\n## Options\n| Properties   | Description\n|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| anchor       | false (default) or true. If enabled, when a tab is clicked, it's id is set in url's fragment so that the tab is retained on page reloads.                                                                                       |\n| hideTitle    | false (default) or true. Hide the title element within section elements.                                                                                                                                                          |\n| sectionClass | Section element's class. Default is section.                                                                                                                                                                                    |\n| tabsClass    | Tab (ul) container's class. Default is tabs.                                                                                                                                                                                    |\n| tabClass     | Individual tab's (li) class. Default is tab.                                                                                                                                                                                    |\n| titleClass   | Title element's tag. Default is title.                                                                                                                                                                                          |\n| onBefore       | function(id, tab). Callback function that gets evaluated before a tab is activated. The first arg is the id of the tab and the second is the DOM element of the tab.                                                            |\n| onAfter        | function(id, tab). Callback function that gets evaluated after a tab is activated. The first arg is the id of the tab and the second is the DOM element of the tab.                                                             |\n| onClose        | function(id). Callback function that gets evaluated while closing the tab. The argument is the id of the tab.                                                             |                                          \n\n\nPlease find out tinytabs wrapper for [`Vuejs`](https://github.com/mevinoth/vue-tiny-tabs)\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzvinoth%2Fr-tiny-tabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzvinoth%2Fr-tiny-tabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzvinoth%2Fr-tiny-tabs/lists"}