react-breadcrumb
v1.0.0
Published
React Breadcrumb Component
Downloads
4
Readme
React Breadcrumb Component
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 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|