bee-breadcrumb
breadcrumb ui component for react
Last updated 6 months ago by tinper-bot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bee-breadcrumb 
SYNC missed versions from official npm registry.

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而不是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

Current Tags

  • 2.0.2                                ...           latest (6 months ago)

14 Versions

  • 2.0.2                                ...           6 months ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
Downloads
Today 0
This Week 31
This Month 345
Last Day 31
Last Week 240
Last Month 1,049
Dependencies (2)
Dev Dependencies (14)

Copyright 2014 - 2017 © taobao.org |