1.0.0 • Published 7 years ago

react-breadcrumb v1.0.0

Weekly downloads
13
License
MIT
Repository
github
Last release
7 years ago

React Breadcrumb Component

NPM version Build Status npm download

Breacrumb for use with React.

You can view an online example in https://amadormf.github.io/react-breadcrumb/

##Install

npm install --save react-breadcrumb

##Examples

import Breadcrumb from 'react-breadcrumb';
<Breadcrumb
  path={'/path/to/section'}
  separatorChar={' - '}
/>

Result: path - to - section

Manual paths

<Breadcrumb
  path={
    [
      {
        path: '/custom/path',
        label: 'path',
      },
      {
        path: '/custom/section',
        label: 'section',
      }
    ]
  }
>  

##Props

Props NameTypeDefaultDescription
pathstring or objectPath to draw
separatorCharstring   /Separator of paths
onClickfunctionFunction that takes 2 parameters, event and path clicked
classNameStringYou can use a custom className
classesObjectYou can customize all classes of component