{"id":22783197,"url":"https://github.com/gregolive/mobile-navbar","last_synced_at":"2026-04-08T22:31:18.325Z","repository":{"id":57114289,"uuid":"466999304","full_name":"gregolive/mobile-navbar","owner":"gregolive","description":"A set of 3 mobile-friendly navbars.","archived":false,"fork":false,"pushed_at":"2022-03-07T14:44:42.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T02:50:08.029Z","etag":null,"topics":["css","javascript","npm","npm-module"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@gregolive/mobile-navbar","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/gregolive.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-03-07T08:07:03.000Z","updated_at":"2022-03-07T14:45:29.000Z","dependencies_parsed_at":"2022-08-22T10:40:26.130Z","dependency_job_id":null,"html_url":"https://github.com/gregolive/mobile-navbar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregolive/mobile-navbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Fmobile-navbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Fmobile-navbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Fmobile-navbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Fmobile-navbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregolive","download_url":"https://codeload.github.com/gregolive/mobile-navbar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregolive%2Fmobile-navbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31577444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["css","javascript","npm","npm-module"],"created_at":"2024-12-11T22:07:18.374Z","updated_at":"2026-04-08T22:31:18.312Z","avatar_url":"https://github.com/gregolive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mobile Navbar\n\nA set of 3 mobile-friendly navbars: an expandable dropdown nav, a side drawer, and a tabbed nav.\n\nAt screen sizes above 768px the dropdown and side drawer navs behave like a typical header nav with menu links appearing on the right side of the navbar.\n\n[Live demo](https://gregolive.github.io/dynamic-ui-design/#mobile-menu-demo) 👈\n\n[npm package](https://www.npmjs.com/package/@gregolive/mobile-navbar) 📦\n\n## Prerequisites\n\nFor icons to display, please install [font-awesome](https://www.npmjs.com/package/font-awesome).\n\n## Installation\n\nOn the command line run:\n\n```\nnpm i @gregolive/mobile-navbar\n```\n\nImport the function(s) in your Javascript file with:\n\n```\nimport { navbarExpand, navbarSide, navbarTabs } from '@gregolive/mobile-navbar';\n```\n\n## Usage\n\nPass 1 or 2 arguments into the selected function depending on the navbar being used:\n\n1. \u003ccode\u003enavbarExpand\u003c/code\u003e and \u003ccode\u003enavbarSide\u003c/code\u003e are first passed a \u003ccode\u003etitle\u003c/code\u003e object for the text that appears on the left side of the navbar and the link that opens when it is clicked\n\n```\nconst myTitle = { text: 'My Navbar', href: '#' };\n```\n\n2. All 3 navbars require a \u003ccode\u003elinks\u003c/code\u003e object containing the text, href and font-awesome icon class for each menu item\n\n```\nconst myLinks = [\n  { text: 'News', href: '#', icon: 'fa-solid fa-newspaper' },\n  { text: 'Contact', href: '#', icon: 'fa-solid fa-address-card' },\n  { text: 'About', href: '#', icon: 'fa-solid fa-circle-info' },\n];\n```\n\nAppend to the DOM.\n\nExamples:\n\n```\n// 1) Expandable dropdown nav\nconst nav1 = navbarExpand(myTitle, myLinks);\ndocument.body.appendChild(nav1);\n\n// 2) Side drawer nav\nconst nav2 = navbarSide(myTitle, myLinks);\ndocument.body.appendChild(nav2);\n\n// 3) Tabbed nav\nconst nav3 = navbarTabs(myLinks);\ndocument.body.appendChild(nav3);\n```\n\nDefault styling (colors, padding, etc.) can be overridden by overriding the CSS variables in:\n\n```\n:root {\n  ...\n}\n```\n\n## License\n\nISC","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregolive%2Fmobile-navbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregolive%2Fmobile-navbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregolive%2Fmobile-navbar/lists"}