{"id":19444218,"url":"https://github.com/itzvinoth/vue-tiny-tabs","last_synced_at":"2025-07-03T15:37:44.274Z","repository":{"id":35063100,"uuid":"201980367","full_name":"itzvinoth/vue-tiny-tabs","owner":"itzvinoth","description":"Vuejs wrapper (size \u003c 3.1kb) for tinytabs library -","archived":false,"fork":false,"pushed_at":"2023-03-01T18:24:11.000Z","size":3893,"stargazers_count":23,"open_issues_count":24,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-25T04:19:59.595Z","etag":null,"topics":["tabs","vue","vue-components","vuejs","vuejs-wrapper"],"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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-08-12T17:45:38.000Z","updated_at":"2025-01-19T16:26:14.000Z","dependencies_parsed_at":"2024-01-07T12:51:45.267Z","dependency_job_id":"eabf0869-cf20-4ded-9a4f-a3fde04d6ede","html_url":"https://github.com/itzvinoth/vue-tiny-tabs","commit_stats":null,"previous_names":["mevinoth/vue-tiny-tabs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itzvinoth/vue-tiny-tabs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fvue-tiny-tabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fvue-tiny-tabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fvue-tiny-tabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fvue-tiny-tabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzvinoth","download_url":"https://codeload.github.com/itzvinoth/vue-tiny-tabs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzvinoth%2Fvue-tiny-tabs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263351248,"owners_count":23453438,"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":["tabs","vue","vue-components","vuejs","vuejs-wrapper"],"created_at":"2024-11-10T16:05:36.413Z","updated_at":"2025-07-03T15:37:44.253Z","avatar_url":"https://github.com/itzvinoth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Tinytabs\nVuejs 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://vue-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/vue-tiny-tabs)\n\n# Install and basic usage\n```sh\n$ npm install vue-tiny-tabs\n```\n\n# Example\n```vue\n\u003ctemplate\u003e\n\t\u003cvue-tiny-tabs id=\"mytabs\" :anchor=\"false\" :closable=\"true\" :hideTitle=\"false\" @on-close=\"onClose\" @on-before=\"onBefore\" @on-after=\"onAfter\"\u003e\n\t\t\u003cdiv class=\"section\" id=\"example\"\u003e\n\t\t\t\u003ch3 class=\"title\"\u003eExample code\u003c/h3\u003e\n\t\t\t\u003ch3\u003eJavascript\u003c/h3\u003e\n\t\t\u003c/div\u003e\n\t\t\u003cdiv class=\"section\" id=\"options\"\u003e\n\t\t\t\u003ch3 class=\"title\"\u003eOptions table\u003c/h3\u003e\n\t\t\t\u003ch3\u003eOptions\u003c/h3\u003e\n\t\t\u003c/div\u003e\n\t\t\u003cdiv class=\"section\" id=\"components\"\u003e\n\t\t\t\u003ch3 class=\"title\"\u003eComponents\u003c/h3\u003e\n\t\t\t\u003ch3\u003eOptions\u003c/h3\u003e\n\t\t\u003c/div\u003e\n\t\u003c/vue-tiny-tabs\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport VueTinyTabs from 'vue-tiny-tabs'\n\nexport default {\n\tname: 'TinyTabs',\n\tcomponents: {\n\t\t'vue-tiny-tabs': VueTinyTabs\n\t},\n\tmethods: {\n\t\tonClose (id) {\n\t\t\tconsole.log('Callback function that gets evaluated while closing the tab', id)\n        },\n\t\tonBefore (id, tab) {\n\t\t\tconsole.log('Callback function that gets evaluated before a tab is activated', id, tab)\n        },\n\t\tonAfter (id, tab) {\n\t\t\tconsole.log('Callback function that gets evaluated after a tab is activated', id, tab)\n\t\t}\n\t},\n}\n\u003c/script\u003e\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 [`Reactjs`](https://github.com/mevinoth/r-tiny-tabs)\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzvinoth%2Fvue-tiny-tabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzvinoth%2Fvue-tiny-tabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzvinoth%2Fvue-tiny-tabs/lists"}