{"id":25761288,"url":"https://github.com/nerocui/navviewnpm","last_synced_at":"2025-08-02T11:32:51.955Z","repository":{"id":101798649,"uuid":"141226981","full_name":"nerocui/NavViewNPM","owner":"nerocui","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-18T20:35:57.000Z","size":126,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T07:04:20.149Z","etag":null,"topics":["fluent","fluent-design","navigation-view","npm-package","react"],"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/nerocui.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":"2018-07-17T03:36:08.000Z","updated_at":"2021-08-04T18:41:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f92cf05-a1a5-4575-bc80-3b1a777c0db9","html_url":"https://github.com/nerocui/NavViewNPM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nerocui/NavViewNPM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerocui%2FNavViewNPM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerocui%2FNavViewNPM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerocui%2FNavViewNPM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerocui%2FNavViewNPM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerocui","download_url":"https://codeload.github.com/nerocui/NavViewNPM/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerocui%2FNavViewNPM/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378965,"owners_count":24240907,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fluent","fluent-design","navigation-view","npm-package","react"],"created_at":"2025-02-26T18:30:18.305Z","updated_at":"2025-08-02T11:32:51.922Z","avatar_url":"https://github.com/nerocui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fluent Navigation View React\r\nA react component for an acrylic effect side menu. Support Dark and light theme.\r\n### Dark Theme\r\n![](https://github.com/nerocui/screenshots/blob/master/NPM%20Package/dark.gif?raw=true)\r\n### Light THeme\r\n![](https://github.com/nerocui/screenshots/blob/master/NPM%20Package/light.gif?raw=true)\r\n\r\n## Installation\r\n```\r\nnpm install --save fluent-nav-view-react\r\n```\r\n# \r\n## Usage\r\n#### import the package\r\n~~~javascript\r\nimport NavigationView from 'fluent-nav-view-react';\r\n~~~\r\n#### immport your dark icons and light icons\r\n~~~javascript\r\nimport cube from './icons/cube.svg';\r\nimport bookmark from './icons/bookmark.svg';\r\nimport diamond from './icons/diamond-outlined-shape.svg';\r\nimport network from './icons/network.svg';\r\nimport star from './icons/star.svg';\r\n\r\nimport lightcube from './icons/cube(1).svg';\r\nimport lightbookmark from './icons/bookmark(1).svg';\r\nimport lightdiamond from './icons/diamond-outlined-shape(1).svg';\r\nimport lightnetwork from './icons/network(1).svg';\r\nimport lightstar from './icons/star(1).svg';\r\n~~~\r\n#### define the Navigation View Items list with dark icon, light icon, text and click handler\r\n~~~javascript\r\nconst items = [\r\n  {\r\n    darkicon:cube,\r\n    lighticon:lightcube,\r\n    text:'item1',\r\n    handler:()=\u003e{console.log('hello from 1')}\r\n  },\r\n  {\r\n    darkicon:bookmark,\r\n    lighticon:lightbookmark,\r\n    text:'item2',\r\n    handler:()=\u003e{console.log('hello from 2')}\r\n  },\r\n  {\r\n    darkicon:diamond,\r\n    lighticon:lightdiamond,\r\n    text:'item3',\r\n    handler:()=\u003e{console.log('hello from 3')}\r\n  },\r\n  {\r\n    darkicon:network,\r\n    lighticon:lightnetwork,\r\n    text:'item4',\r\n    handler:()=\u003e{console.log('hello from 4')}\r\n  },\r\n  {\r\n    darkicon:star,\r\n    lighticon:lightstar,\r\n    text:'item5',\r\n    handler:()=\u003e{console.log('hello from 5')}\r\n  },\r\n];\r\n~~~\r\n#### add a background image to you style file for the see thru effect\r\n~~~css\r\nbody {\r\n  margin: 0;\r\n  font: 1em/1.4 Sans-serif;\r\n  height: 100vh;\r\n  background: url(\"https://images.unsplash.com/photo-1452723312111-3a7d0db0e024?w=700\") center/cover;\r\n  background-attachment: fixed;\r\n}\r\n~~~\r\n#### or if you want the effect to be only under the Navigation View panel\r\n~~~javascript\r\nconst image = 'https://images.unsplash.com/photo-1452723312111-3a7d0db0e024?w=700';\r\n~~~\r\n#### use it in your app with \"dark\" or \"light\" theme\r\n~~~javascript\r\nclass App extends Component {\r\n  render() {\r\n    return (\r\n      \u003cdiv className=\"App\"\u003e\r\n              \u003cNavigationView background={image} items={items} theme=\"dark\"/\u003e\r\n      \u003c/div\u003e\r\n    );\r\n  }\r\n}\r\n~~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerocui%2Fnavviewnpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerocui%2Fnavviewnpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerocui%2Fnavviewnpm/lists"}