36 lines
573 B
Markdown
Raw Normal View History

2016-03-18 14:42:45 +13:00
#NorthHeaderBreadcrumbs
The breadcrumbs for the current section of the CMS.
## Props
### Crumbs (array)
An array of objects, each object should have a `text` and `href` key.
```
import BreadcrumbComponent from 'breadcrumb';
2016-03-18 14:42:45 +13:00
...
getBreadcrumbs() {
var breadcrumbs = [
{
text: 'Pages',
href: 'admin/pages'
},
{
text: 'About us',
href: 'admin/pages/show/2'
}
];
return breadcrumbs;
}
render() {
return <BreadcrumbComponent crumbs={this.getBreadcrumbs()} />
2016-03-18 14:42:45 +13:00
}
...
```