react-mf-breadcrumb
v1.0.6
Published
React Breadcrumb Component
Downloads
5
Readme
React Breadcrumb Component
![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|