Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
bee-breadcrumb
Advanced tools
Breadcrumb
常用来指定当前页面位置,添加类active
类激活Breadcrumb.Item.不要同时设置active
和href
,设置了active
会将子元素渲染成span
,覆盖a
.
使用单独的bee-breadcrumb包
先进行下载bee-breadcrumb包
npm install --save bee-breadcrumb
组件调用
import Alert from 'bee-breadcrumb';
React.render(<div>
<Breadcrumb>
<Breadcrumb.Item href="#">
Home
</Breadcrumb.Item>
<Breadcrumb.Item href='http://getbootstrap.com/components/#breadcrumbs'>
Library
</Breadcrumb.Item>
<Breadcrumb.Item active>
Data
</Breadcrumb.Item>
</Breadcrumb>
</div>, document.getElementById('target'));
<link rel="stylesheet" href="./node_modules/build/bee-breadcrumb.css">
import "./node_modules/src/Breadcrumb.scss"
//或是
import "./node_modules/build/bee-breadcrumb.css"
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
active | 如果设置成true,渲染成span而不是a | bool | false |
href | 给内部a标签设置的属性 | string | '' |
title | 给内部a标签设置的属性 | string | '' |
$ git clone https://github.com/tinper-bee/bee-breadcrumb
$ cd bee-breadcrumb
$ npm install
$ npm run dev
FAQs
breadcrumb ui component for react
The npm package bee-breadcrumb receives a total of 24 weekly downloads. As such, bee-breadcrumb popularity was classified as not popular.
We found that bee-breadcrumb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.