{"id":27119966,"url":"https://github.com/eracodex/react-navbar","last_synced_at":"2025-04-07T09:27:57.195Z","repository":{"id":166677001,"uuid":"296808951","full_name":"eracodex/react-navbar","owner":"eracodex","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-23T10:00:57.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T14:40:09.143Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eracodex.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":"2020-09-19T07:16:00.000Z","updated_at":"2021-03-23T10:00:59.000Z","dependencies_parsed_at":"2023-06-01T14:15:42.009Z","dependency_job_id":null,"html_url":"https://github.com/eracodex/react-navbar","commit_stats":null,"previous_names":["tradecoder/react-navbar","logixmaster/react-navbar","mydigita/react-navbar","erabossid/react-navbar","erabosstt/react-navbar","erabosscode/react-navbar","eracodex/react-navbar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eracodex%2Freact-navbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eracodex%2Freact-navbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eracodex%2Freact-navbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eracodex%2Freact-navbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eracodex","download_url":"https://codeload.github.com/eracodex/react-navbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247625164,"owners_count":20969023,"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-04-07T09:27:56.754Z","updated_at":"2025-04-07T09:27:57.177Z","avatar_url":"https://github.com/eracodex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-navbar\nWe used bootstrap4 for this navbar (version 4.5.2)\n\nCreate a file in the `components` folder and name it\n\n`navbar.component.js`\n\nThen use the following code in the `navbar.component.js` file and make necessary modification like brand-name, link-names, path \n\n```javascript\nimport React from 'react';\nimport {Link} from \"react-router-dom\";\nimport 'bootstrap/dist/css/bootstrap.min.css';\nimport 'bootstrap/dist/js/bootstrap.bundle';\nimport 'jquery/dist/jquery';\n\nexport default function Navbar(){\n    return (\n        \u003cnav className=\"navbar navbar-expand-lg navbar-dark bg-dark\"\u003e\n            \u003cdiv className=\"container-fluid\"\u003e\n                \u003cdiv className=\"navbar-header\"\u003e\n                    \u003ca href=\"/\" className=\"navbar-brand\"\u003etradecoder\u003c/a\u003e\n                \u003c/div\u003e\n                    \u003cbutton data-target=\"#main-menu\" data-toggle=\"collapse\" className=\"navbar-toggler\"\u003e\n                        \u003cspan className=\"navbar-toggler-icon\"\u003e\u003c/span\u003e\n                    \u003c/button\u003e\n                    \u003cdiv id=\"main-menu\" className=\"collapse navbar-collapse\"\u003e\n                        \u003cul className=\"navbar-nav ml-auto\"\u003e\n                            \u003cli className=\"nav-item\"\u003e\u003cLink to=\"/link-one/\" className=\"nav-link\"\u003eLink One\u003c/Link\u003e\u003c/li\u003e\n                            \u003cli className=\"nav-item\"\u003e\u003cLink to=\"/link-two/\" className=\"nav-link\"\u003eLink Two\u003c/Link\u003e\u003c/li\u003e\n                            \u003cli className=\"nav-item\"\u003e\u003cLink to=\"/link-three/\" className=\"nav-link\"\u003eLink Three\u003c/Link\u003e\u003c/li\u003e\n                        \u003c/ul\u003e\n                    \u003c/div\u003e       \n            \u003c/div\u003e\n        \u003c/nav\u003e\n    );\n}\n```\n\nThen import the Navbar component in the relevant file.\n\nSample import of Navbar component to `App.js` file\n\n```javascript\nimport React from 'react';\nimport {BrowserRouter as Router, Route} from \"react-router-dom\";\nimport Counter from './components/counter.component';\nimport Navbar from './components/navbar.component.js';\n// import AotherComonent from './components/another-component.component.js';\n// import ThreeComponent from './components/three-component.comonent.js';\n\nfunction App() { \n  return (    \n    \u003cRouter\u003e\n      \u003cNavbar /\u003e\n   //   \u003cRoute path=\"/\" exact component = {AnotherComponent} /\u003e\n   //   \u003cRoute path=\"/link-three\" component = {ThreeComponent} /\u003e\n    \u003c/Router\u003e\n  );\n}\n\nexport default App;\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feracodex%2Freact-navbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feracodex%2Freact-navbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feracodex%2Freact-navbar/lists"}