{"id":28042852,"url":"https://github.com/pSkywalker/ez-nav","last_synced_at":"2025-05-11T15:01:37.787Z","repository":{"id":291793882,"uuid":"978803115","full_name":"pSkywalker/ez-nav","owner":"pSkywalker","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-06T15:52:04.000Z","size":154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T15:52:37.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pSkywalker.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,"zenodo":null}},"created_at":"2025-05-06T14:29:22.000Z","updated_at":"2025-05-06T15:52:07.000Z","dependencies_parsed_at":"2025-05-07T07:00:21.363Z","dependency_job_id":null,"html_url":"https://github.com/pSkywalker/ez-nav","commit_stats":null,"previous_names":["pskywalker/ez-nav"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pSkywalker%2Fez-nav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pSkywalker%2Fez-nav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pSkywalker%2Fez-nav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pSkywalker%2Fez-nav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pSkywalker","download_url":"https://codeload.github.com/pSkywalker/ez-nav/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253584490,"owners_count":21931547,"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":"2025-05-11T15:01:09.604Z","updated_at":"2025-05-11T15:01:37.702Z","avatar_url":"https://github.com/pSkywalker.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components","Recently Updated"],"sub_categories":["UI Libraries built on Bootstrap","[May 10, 2025](/content/2025/05/10/README.md)"],"readme":"\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n  \u003cmeta charset=\"UTF-8\" /\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/\u003e\n  \n\u003c/head\u003e\n\u003cbody\u003e\n\n  \u003ch1\u003e🧭 ez-nav\u003c/h1\u003e\n  \u003cp\u003e\n    A \u003cstrong\u003econfig-driven, responsive Angular navigation bar\u003c/strong\u003e that integrates seamlessly with Bootstrap layouts.\n  \u003c/p\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://www.npmjs.com/package/ez-nav\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/v/ez-nav.svg\" alt=\"npm version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/ez-nav\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/dm/ez-nav.svg\" alt=\"npm downloads\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/YOUR_USERNAME/ez-nav/blob/main/LICENSE\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/l/ez-nav.svg\" alt=\"license\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://angular.io\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/angular-19.2+-dd0031?logo=angular\u0026logoColor=white\" alt=\"angular compatibility\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://getbootstrap.com\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/bootstrap-5.0+-563d7c?logo=bootstrap\u0026logoColor=white\" alt=\"bootstrap version\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n  \u003cimg width=\"250\" height=\"250\" src=\"https://github.com/user-attachments/assets/b524b924-8c3e-4b88-b433-bf84ad805982\"/\u003e\n\n  \u003ch2\u003e✨ Features\u003c/h2\u003e\n  \u003cul\u003e\n    \u003cli\u003e📱 Mobile-first responsive design\u003c/li\u003e\n    \u003cli\u003e🧩 Easily toggled mobile nav drawer\u003c/li\u003e\n    \u003cli\u003e🔽 Dropdown support with subnav items\u003c/li\u003e\n    \u003cli\u003e🎨 Full class-based customization for layout \u0026 styles\u003c/li\u003e\n    \u003cli\u003e🧠 Simple, declarative config-driven structure\u003c/li\u003e\n  \u003c/ul\u003e\n\n  \u003ch2\u003e📦 Installation\u003c/h2\u003e\n  \u003cpre\u003e\u003ccode\u003enpm install ez-nav\u003c/code\u003e\u003c/pre\u003e\n  \u003cp\u003e\u003cstrong\u003e✅ Requires Angular 19.2.0+\u003c/strong\u003e\u003cbr\u003e\n  \u003cp\u003e\u003cstrong\u003e✅ Requires Bootstrap 5.0.0+ \u003c/strong\u003e\u003cbr\u003e\n\n  \u003ch2\u003e🚀 Usage\u003c/h2\u003e\n\n  \u003ch3\u003e1. Import the component\u003c/h3\u003e\n  \u003cpre\u003e\u003ccode\u003eimport { EzNavComponent } from 'ez-nav';\u003c/code\u003e\u003c/pre\u003e\n\n  \u003ch3\u003e2. Use in your component template\u003c/h3\u003e\n  \u003cpre\u003e\u003ccode\u003e\u0026lt;ez-nav [header]=\"headerConfig\"\u0026gt;\u0026lt;/ez-nav\u0026gt;\u003c/code\u003e\u003c/pre\u003e\n\n  \u003ch2\u003e⚙️ Configuration Example\u003c/h2\u003e\n  \u003cpre\u003e\u003ccode\u003epublic headerConfig: HeaderConfig = {\n  wrappingClass: [\"container-fluid\"],\n  parentRowLogoClasses: [\"col-md-8\", \"col-sm-8\", \"col-10\", \"logoPadding\"],\n  parentNavItemsClasses: [\"col-md-4\", \"col-sm-4\", \"col-2\", \"navBarPadding\"],\n  logo: {\n    src: 'assets/your-logo.png',\n    alt: 'Company Logo',\n    imageClassNames: ['img-fluid']\n  },\n  navRow: {\n    drawerIconOpen: ['bi', 'bi-filter-right', 'drawerIcon'],\n    drawerIconClosed: ['bi', 'bi-filter-left', 'drawerIcon'],\n    items: [\n      {\n        title: '🏠 Home',\n        route: '/',\n        gridClasses: [\"col-md-2\", \"col-sm-2\"],\n        anchorTagClass: ['nav-link'],\n        anchorTagClassMobile: ['mobile-item']\n      },\n      {\n        title: '🛍️ Products',\n        route: '/products',\n        gridClasses: [\"col-md-2\", \"col-sm-2\"],\n        anchorTagClass: ['nav-link'],\n        anchorTagClassMobile: ['mobile-item']\n      },\n      {\n        title: '🛠️ Services',\n        route: '/services',\n        gridClasses: [\"col-md-2\", \"col-sm-2\"],\n        anchorTagClass: ['nav-link'],\n        anchorTagClassMobile: ['mobile-item'],\n        dropDownParentClasses: ['dropdown'],\n        subNavOpenClasses: [\"bi\", \"bi-caret-up-fill\"],\n        subNavCloseClasses: [\"bi\", \"bi-caret-down-fill\"],\n        subNav: [\n          {\n            title: \"💬 Consulting\",\n            route: \"/services/consulting\",\n            cssClasses: [\"dropdown-item\"]\n          },\n          {\n            title: \"💻 Development\",\n            route: \"/services/development\",\n            cssClasses: [\"dropdown-item\"]\n          }\n        ]\n      },\n      {\n        title: '📞 Contact',\n        route: '/contact',\n        gridClasses: [\"col-md-2\", \"col-sm-2\"],\n        anchorTagClass: ['nav-link'],\n        anchorTagClassMobile: [\"mobile-item\"]\n      }\n    ]\n  }\n};\u003c/code\u003e\u003c/pre\u003e\n\n\u003ctable class=\"table table-bordered\"\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth scope=\"col\"\u003eParameter\u003c/th\u003e\n      \u003cth scope=\"col\"\u003eType\u003c/th\u003e\n      \u003cth scope=\"col\"\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003ewrappingClass\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eClasses applied to the wrapper element (e.g., \u003ccode\u003econtainer-fluid\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003eparentRowLogoClasses\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eClasses applied to the parent row for the logo (e.g., \u003ccode\u003ecol-md-8\u003c/code\u003e, \u003ccode\u003elogoPadding\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003eparentNavItemsClasses\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eClasses applied to the parent row for the navigation items (e.g., \u003ccode\u003ecol-md-4\u003c/code\u003e, \u003ccode\u003enavBarPadding\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd colspan=\"3\"\u003e\u003cstrong\u003elogo\u003c/strong\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003elogo.src\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003ePath to the logo image (e.g., \u003ccode\u003eassets/your-logo.png\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003elogo.alt\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring\u003c/code\u003e (optional)\u003c/td\u003e\n      \u003ctd\u003eAlt text for the logo image (e.g., \u003ccode\u003eCompany Logo\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003elogo.imageClassNames\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eClasses applied to the logo image (e.g., \u003ccode\u003eimg-fluid\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd colspan=\"3\"\u003e\u003cstrong\u003enavRow\u003c/strong\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.drawerIconOpen\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eClasses for the icon when the drawer is open (e.g., \u003ccode\u003ebi\u003c/code\u003e, \u003ccode\u003ebi-filter-right\u003c/code\u003e, \u003ccode\u003edrawerIcon\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.drawerIconClosed\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eClasses for the icon when the drawer is closed (e.g., \u003ccode\u003ebi\u003c/code\u003e, \u003ccode\u003ebi-filter-left\u003c/code\u003e, \u003ccode\u003edrawerIcon\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003eobject[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eList of navigation items.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.title\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eThe title of the navigation item (e.g., \u003ccode\u003e🏠 Home\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.route\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eThe route path for the navigation item (e.g., \u003ccode\u003e/\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.gridClasses\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eGrid classes for responsive layout of the navigation item (e.g., \u003ccode\u003ecol-md-2\u003c/code\u003e, \u003ccode\u003ecol-sm-2\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.anchorTagClass\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eClasses applied to the anchor tag for the item (e.g., \u003ccode\u003enav-link\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.anchorTagClassMobile\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eClasses applied to the anchor tag for mobile devices (e.g., \u003ccode\u003emobile-item\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.dropDownParentClasses\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e (optional)\u003c/td\u003e\n      \u003ctd\u003eClasses applied to the parent element of a dropdown menu (e.g., \u003ccode\u003edropdown\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.subNavOpenClasses\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e (optional)\u003c/td\u003e\n      \u003ctd\u003eClasses for the icon indicating that the sub-navigation is open (e.g., \u003ccode\u003ebi\u003c/code\u003e, \u003ccode\u003ebi-caret-up-fill\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.subNavCloseClasses\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e (optional)\u003c/td\u003e\n      \u003ctd\u003eClasses for the icon indicating that the sub-navigation is closed (e.g., \u003ccode\u003ebi\u003c/code\u003e, \u003ccode\u003ebi-caret-down-fill\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.subNav\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003eobject[]\u003c/code\u003e (optional)\u003c/td\u003e\n      \u003ctd\u003eList of submenu items for a navigation item with a dropdown.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.subNav.title\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eThe title of a sub-navigation item (e.g., \u003ccode\u003e💬 Consulting\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.subNav.route\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eThe route path for a sub-navigation item (e.g., \u003ccode\u003e/services/consulting\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003enavRow.items.subNav.cssClasses\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ccode\u003estring[]\u003c/code\u003e\u003c/td\u003e\n      \u003ctd\u003eCSS classes applied to the sub-navigation item (e.g., \u003ccode\u003edropdown-item\u003c/code\u003e).\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n  \u003ch2\u003e🎨 Styling Tips\u003c/h2\u003e\n  \u003cp\u003eTo ensure proper styling, include Bootstrap's CSS in your project:\u003c/p\u003e\n  \u003cpre\u003e\u003ccode\u003e@import 'bootstrap/dist/css/bootstrap.min.css';\n\u003c/code\u003e\u003c/pre\u003e\n  \u003cp\u003e\n  \u003cstrong\u003eImportant:\u003c/strong\u003e  All custom styles for this component should be placed in your project's root \u003ccode\u003estyle.css\u003c/code\u003e file.  Here are a few examples:\n  \u003c/p\u003e\n  \u003cpre\u003e\u003ccode\u003e.logoPadding {\n  padding: 10px;\n}\n.drawerIcon {\n  font-size: 1.5rem;\n  cursor: pointer;\n}\n\u003c/code\u003e\u003c/pre\u003e\n\n  \u003ch2\u003e📚 Dependencies\u003c/h2\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003cstrong\u003eAngular 19.2.0+\u003c/strong\u003e\u003c/li\u003e\n    \u003cli\u003e\u003cstrong\u003e Bootstrap 5.0.0 \u003c/strong\u003e\u003c/li\u003e\n  \u003c/ul\u003e\n\n  \u003ch2\u003e📜 License\u003c/h2\u003e\n  \u003cp\u003eMIT © DigitalCastle\u003c/p\u003e\n\n\u003c/body\u003e\n\u003c/html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FpSkywalker%2Fez-nav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FpSkywalker%2Fez-nav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FpSkywalker%2Fez-nav/lists"}