{"id":15180449,"url":"https://github.com/neomusic/react-bootstrap-navdropdown-active","last_synced_at":"2025-10-01T20:32:40.780Z","repository":{"id":65372193,"uuid":"86122724","full_name":"neomusic/react-bootstrap-navdropdown-active","owner":"neomusic","description":"Create bootstrap NavDropdown component with CSS class active","archived":true,"fork":false,"pushed_at":"2017-03-27T08:27:43.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T00:24:49.809Z","etag":null,"topics":["bootstrap-navbar","bootstrap-navdropdown","bootstrap3","react","react-bootstrap","react-bootstrap-components","react-bootstrap-navdropdown","react-component"],"latest_commit_sha":null,"homepage":"","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/neomusic.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":"2017-03-25T00:59:02.000Z","updated_at":"2023-01-28T10:47:35.000Z","dependencies_parsed_at":"2023-01-19T23:16:34.013Z","dependency_job_id":null,"html_url":"https://github.com/neomusic/react-bootstrap-navdropdown-active","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomusic%2Freact-bootstrap-navdropdown-active","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomusic%2Freact-bootstrap-navdropdown-active/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomusic%2Freact-bootstrap-navdropdown-active/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomusic%2Freact-bootstrap-navdropdown-active/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neomusic","download_url":"https://codeload.github.com/neomusic/react-bootstrap-navdropdown-active/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234897368,"owners_count":18903646,"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":["bootstrap-navbar","bootstrap-navdropdown","bootstrap3","react","react-bootstrap","react-bootstrap-components","react-bootstrap-navdropdown","react-component"],"created_at":"2024-09-27T16:07:20.068Z","updated_at":"2025-10-01T20:32:35.500Z","avatar_url":"https://github.com/neomusic.png","language":"JavaScript","readme":"[![Build Status](https://travis-ci.org/neomusic/react-bootstrap-navdropdown-active.svg?branch=master)](https://travis-ci.org/neomusic/react-bootstrap-navdropdown-active)\n[![npm version](https://badge.fury.io/js/react-bootstrap-navdropdown-active.svg)](https://badge.fury.io/js/react-bootstrap-navdropdown-active)\n\n# React Bootstrap Navdropdown Active\n\nMake Bootstrap dropdown element for your navbar with active class on dropdown element\n\n## Getting Started\n\n### Prerequisites\n\n`react`: `^15.4.1`\n\n### Installing\n\n`npm install --save react-bootstrap-navdropdown-active`\n\n### Usage \n\n```\nimport ActiveDropdown from ‘react-bootstrap-navdropdown-active’\n\n\u003cActiveDropdown activeRoutes={['/foo/bar', ‘/bar/baz’]} baseClassName=\"dropdown-toggle\" title=\"Foo\"\u003e\n\t\u003cli\u003e\u003cLink to=“/foo/bar” activeClassName=“active”\u003eFoo\u003c/Link\u003e\u003c/li\u003e\n\t\u003cli\u003e\u003cLink to=“/bar/baz” activeClassName=“active”\u003eBaz\u003c/Link\u003e\u003c/li\u003e\n\u003c/ActiveDropdown\u003e          \n\n```\n\n**Result**\n\n```\n\u003cli class=\"dropdown\"\u003e\n  \u003ca class=“dropdown-toogle” data-toggle=“dropdown” role=“button” aria-haspopup=“true” aria-expanded=“false”\u003eFoo\u003cspan className=“caret” /\u003e\u003c/a\u003e\n    \u003cul className=“dropdown-menu”\u003e\n      \u003cli\u003e\u003ca href=“/foo/bar”\u003eFoo\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"/bar/baz“\u003eBar\u003c/a\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n\u003c/li\u003e\n```\n\n### Parameters\n\n| Name Parameter | Required | Type | Note |\n| --- | --- | --- | --- |\n| `activeRoutes ` | Yes  | Array  | Use this parameter to define which routes need to compare  |   |\n|  `baseClassName ` |  Yes | String  | Set the default CSS class independently for active class. If nothing CSS class must be used by default set empty string  |   |\n|  `title ` | Yes  | String  | Set the name showed on top of dropdown  |   |\n\n\n\n## Running the tests\n\n`npm test`\n\n\n## Contributing\n\n* `Fork the repo`\n* `Make tests for your contribution`\n* `Make you contribute`\n* ` Running tests`\n* `Make a pull request`\n\n## Authors\n\n* **Giuseppe Aremare** - *Initial work* - [Twitter](https://twitter.com/beppeA95)  [GitHub](https://github.com/neomusic)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneomusic%2Freact-bootstrap-navdropdown-active","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneomusic%2Freact-bootstrap-navdropdown-active","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneomusic%2Freact-bootstrap-navdropdown-active/lists"}