Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bee-breadcrumb

Package Overview
Dependencies
Maintainers
15
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-breadcrumb

breadcrumb ui component for react

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30
decreased by-23.08%
Maintainers
15
Weekly downloads
 
Created
Source

bee-breadcrumb

npm version Build Status devDependency Status

Breadcrumb 常用来指定当前页面位置,添加类active类激活Breadcrumb.Item.不要同时设置activehref,设置了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引入dist目录下bee-alert.css
<link rel="stylesheet" href="./node_modules/build/bee-breadcrumb.css">
  • 可以在js中import样式
import "./node_modules/src/Breadcrumb.scss"
//或是
import "./node_modules/build/bee-breadcrumb.css"

API

参数说明类型默认值
active如果设置成true,渲染成span而不是aboolfalse
href给内部a标签设置的属性string''
title给内部a标签设置的属性string''
开发调试
$ git clone https://github.com/tinper-bee/bee-breadcrumb
$ cd bee-breadcrumb
$ npm install
$ npm run dev

Keywords

FAQs

Package last updated on 24 Apr 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc