@hawk-ui/breadcrumb
v4.4.4
Published
hawk-ui: Basic Breadcrumb Component
Downloads
515
Maintainers
Readme
Installation
To install a component run
$ npm install @hawk-ui/breadcrumb --save
Please import CSS styles via
@import '/path__to__node_modules/@hawk-ui/breadcrumb/dist/index.min.css
Usage
Breadcrumb:
import Breadcrumb from '@hawk-ui/breadcrumb';
initialState = {
navbar: [
{ key: 1, label: 'home', link: '#', active: false },
],
};
<Breadcrumb
panes={state.navbar}
/>
Breadcrumb:
import Breadcrumb from '@hawk-ui/breadcrumb';
initialState = {
navbar: [
{ key: 1, label: 'home', link: '#', active: true },
{ key: 1, label: 'library', link: '#', active: false },
],
};
<Breadcrumb
panes={state.navbar}
/>
Breadcrumb:
import Breadcrumb from '@hawk-ui/breadcrumb';
initialState = {
navbar: [
{ key: 1, label: 'home', link: '#', active: true },
{ key: 1, label: 'library', link: '#', active: true },
{ key: 1, label: 'data', link: '#', active: false },
],
};
<Breadcrumb
panes={state.navbar}
/>