@wallnit-ui/breadcrumb
v0.1.0
Published
wallnit-ui: Basic Breadcrumb Component
Downloads
4
Maintainers
Readme
Installation
To install a component run
$ npm install @wallnit-ui/breadcrumb --save
Please import CSS styles via
@import '/path__to__node_modules/@wallnit-ui/breadcrumb/dist/index.min.css
Usage
Breadcrumb:
import { Breadcrumb } from '@wallnit-ui/breadcrumb';
initialState = {
panes: [
{ label: 'home', link: '#' },
],
};
<Breadcrumb
panes={state.panes}
/>
Breadcrumb:
import { Breadcrumb } from '@wallnit-ui/breadcrumb';
initialState = {
panes: [
{ label: 'home', link: '#' },
{ label: 'about', link: '#' },
{ label: 'contact', link: '#' },
],
};
<Breadcrumb
panes={state.panes}
/>