react-mf-breadcrumb

1.0.6 • Public • Published

React Breadcrumb Component

NPM version ![npm download][download-image]

##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 Name Type Default Description
path [string or object] Path to draw
separatorChar string    / Separator of paths
onClick function Function that takes 2 parameters, event and path clicked
className String You can use a custom className
classes Object You can customize all classes of component

Readme

Keywords

Package Sidebar

Install

npm i react-mf-breadcrumb

Weekly Downloads

11

Version

1.0.6

License

MIT

Last publish

Collaborators

  • pozelim