{"id":22268961,"url":"https://github.com/knowler/kno-tabs-element","last_synced_at":"2025-03-25T15:21:02.022Z","repository":{"id":264943026,"uuid":"812110080","full_name":"knowler/kno-tabs-element","owner":"knowler","description":"Work in progress","archived":false,"fork":false,"pushed_at":"2024-09-13T20:18:22.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T03:33:37.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/knowler.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-08T01:45:35.000Z","updated_at":"2024-06-08T01:55:34.000Z","dependencies_parsed_at":"2024-11-27T00:18:23.934Z","dependency_job_id":null,"html_url":"https://github.com/knowler/kno-tabs-element","commit_stats":null,"previous_names":["knowler/kno-tabs-element"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fkno-tabs-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fkno-tabs-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fkno-tabs-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fkno-tabs-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowler","download_url":"https://codeload.github.com/knowler/kno-tabs-element/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245486362,"owners_count":20623244,"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":[],"created_at":"2024-12-03T11:14:35.193Z","updated_at":"2025-03-25T15:21:01.995Z","avatar_url":"https://github.com/knowler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003ckno-tabs\u003e` custom element\n\nThis is a **work in progress** tabs custom element that I’m building for\ninterest-sake. It uses manual slot assignment and so the `\u003ckno-tab\u003e` and\n`\u003ckno-panel\u003e` elements are the API for setting tabs and their associated\npanels. A goal is to avoid exposing internal ARIA attributes or\n`tabindex` however that might not be possible in some browsers.\n\nHere’s what the HTML API currently looks like:\n\n```html\n\u003ckno-tabs\u003e\n  \u003ckno-tab\u003eKnocked Loose\u003c/kno-tab\u003e\n  \u003ckno-panel\u003eYou Won’t Go Before You’re Supposed To\u003c/kno-panel\u003e\n\n  \u003ckno-tab\u003eComeback Kid\u003c/kno-tab\u003e\n  \u003ckno-panel\u003eHeavy Steps\u003c/kno-panel\u003e\n\n  \u003ckno-tab\u003eMilitarie Gun\u003c/kno-tab\u003e\n  \u003ckno-panel\u003eLife Under The Gun\u003c/kno-panel\u003e\n\u003c/kno-tabs\u003e\n```\n\nThe styling API is as follows:\n\n```css\nkno-tabs {\n  /* Style the tabs container */\n}\n\nkno-tabs::part(tablist) {\n  /* Style the tabs list */\n}\n\nkno-tab {\n  /* Style the tab buttons */\n}\n\nkno-tab:state(current) {\n  /* Style the current/selected tab button */\n}\n\nkno-panel {\n  /* Style the tab panels */\n}\n\nkno-panel:state(current) {\n  /* Style the current/selected tab panel */\n}\n\n/*\n  Since light DOM order is respected you can style elements based on\n  position using the `:nth-of-type()` pseudo-class selector.\n*/\n\nkno-tab:nth-of-type(2) {\n  /* Style the second tab button */\n}\n\nkno-panel:nth-of-type(2) {\n  /* Style the second tab panel */\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fkno-tabs-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowler%2Fkno-tabs-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fkno-tabs-element/lists"}