{"id":13780141,"url":"https://github.com/zoltantothcom/vanilla-js-tabs","last_synced_at":"2025-05-11T13:31:33.937Z","repository":{"id":145786288,"uuid":"48130717","full_name":"zoltantothcom/vanilla-js-tabs","owner":"zoltantothcom","description":"Vanilla JavaScript tabs - tiny and simple.","archived":false,"fork":false,"pushed_at":"2024-04-27T12:27:43.000Z","size":305,"stargazers_count":62,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-03T18:14:47.149Z","etag":null,"topics":["javascript-tabs","tabs","tabs-widget","vanilla-javascript-tabs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoltantothcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2015-12-16T19:32:07.000Z","updated_at":"2024-07-03T20:36:43.000Z","dependencies_parsed_at":"2024-08-03T18:11:55.622Z","dependency_job_id":"ae4f79bd-5e73-40de-ada0-ecd0e835fd8b","html_url":"https://github.com/zoltantothcom/vanilla-js-tabs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoltantothcom%2Fvanilla-js-tabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoltantothcom%2Fvanilla-js-tabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoltantothcom%2Fvanilla-js-tabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoltantothcom%2Fvanilla-js-tabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoltantothcom","download_url":"https://codeload.github.com/zoltantothcom/vanilla-js-tabs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225056764,"owners_count":17414204,"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":["javascript-tabs","tabs","tabs-widget","vanilla-javascript-tabs"],"created_at":"2024-08-03T18:01:12.717Z","updated_at":"2024-11-17T15:30:56.627Z","avatar_url":"https://github.com/zoltantothcom.png","language":"TypeScript","funding_links":[],"categories":["Components"],"sub_categories":["Tabs"],"readme":"# Vanilla JavaScript Tabs\n\n[![Coverage Status](https://coveralls.io/repos/github/zoltantothcom/vanilla-js-tabs/badge.svg?branch=master)](https://coveralls.io/github/zoltantothcom/vanilla-js-tabs?branch=master) ![Dependencies](https://img.shields.io/badge/dependencies-none-brightgreen.svg)\n\nVanilla JavaScript Tabs - simple and awesome.\n\n_— Inspired by the blazing fast, lightweight, cross-platform and crazy popular [Vanilla JS](http://vanilla-js.com/) framework._\n\n## Demo\n\n[TABS](http://zoltantothcom.github.io/vanilla-js-tabs)\n\n## Options\n\n| Option | Type   | Default | Description                                        |\n| ------ | ------ | ------- | -------------------------------------------------- |\n| elem   | string |         | HTML _id_ of the tab container in the HTML markup. |\n| open   | number | 0       | Opens this tab initially.                          |\n\n## Methods\n\n| Method    | Type   | Description                                                                        |\n| --------- | ------ | ---------------------------------------------------------------------------------- |\n| open(n)   | number | Opens a tab by index                                                               |\n| update(n) | number | Updates the tabs with _n_-th tab open\u003cbr /\u003e_(useful when dynamically adding tabs)_ |\n| destroy() |        | Removes the listeners                                                              |\n\n## Usage example\n\n```javascript\nvar tabs = Tabs({\n  elem: \"tabs\",\n  open: 1,\n});\n```\n\n```javascript\n// Open any other tab\ntabs.open(3);\n```\n\n## Running the tests\n\n```\nnpm test\n```\n\n## Browser support and dependencies\n\n| Browser    | Support | Dependencies |\n| ---------- | ------- | ------------ |\n| Chrome     | yes     | -            |\n| Firefox    | yes     | -            |\n| Safari     | yes     | -            |\n| Opera      | yes     | -            |\n| IE9 and up | yes     | -            |\n\n## License\n\nAnyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.\n\nSee [Unlicense](http://unlicense.org) for full details.\n\n## Related\n\n- [Vanilla JavaScript **Carousel**](https://github.com/zoltantothcom/vanilla-js-carousel)\n- [Vanilla JavaScript **Dropdown**](https://github.com/zoltantothcom/vanilla-js-dropdown)\n- [Vanilla JavaScript **Tooltip**](https://github.com/zoltantothcom/vanilla-js-tooltip)\n- [Vanilla JavaScript **Accordion**](https://github.com/zoltantothcom/vanilla-js-accordion)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoltantothcom%2Fvanilla-js-tabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoltantothcom%2Fvanilla-js-tabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoltantothcom%2Fvanilla-js-tabs/lists"}