1.0.6 • Published 7 years ago

react-mf-breadcrumb v1.0.6

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

React Breadcrumb Component

NPM version npm download

##Install

npm install --save react-mf-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
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago