Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
react-breadcrumbs
Advanced tools
React component use to generate a breadcrumb trail (compatible with React Router).
npm install --save react-breadcrumbs
The /demo
directory and live demo site provide one example of how this
package can be used. See the /demo
for the code powering the small
site.
This package exposes two components, a <Breadcrumbs>
component to wrap
the entire application and a <Breadcrumb>
component to use throughout
the different sections (e.g. <Route>
s) within the application.
The top-level <Breadcrumbs>
component accepts the following props
:
className
(string): A class name for the outer wrapper element.hidden
(bool): Hide the inner breadcrumbs wrapper.wrapper
(func|class): A react component to use for the inner wrapper.data
(object): An extended location descriptor. See below...hidden
(bool): Hide an individual breadcrumb (rarely needed).The data
object allows any valid location descriptor key (e.g.
pathname
or search
) as well as a title
prop:
{
title: 'Home', // Any valid `PropTypes.node`
pathname: '/',
// ... any other location descriptor values
}
The fact that the title
can be any valid PropTypes.node
makes allows
a huge amount of customization. The following values are all valid:
title: 'Home'
title: <span title="Hovered!">Home</span>
title: <CustomComponent title="Home" icon="house" />
FAQs
Automatic breadcrumbs for react-router
The npm package react-breadcrumbs receives a total of 2,163 weekly downloads. As such, react-breadcrumbs popularity was classified as popular.
We found that react-breadcrumbs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.