react-breadcrumbs-json

1.0.5 • Public • Published

react-breadcrumbs-json

It's simple component that will be use for render Breadcrumb using json format

Install

'npm install react-breadcrumbs-json'

Usage basic

import BreadcrumbRoute from 'react-breadcrumbs-json'
const jsonData = {
  "data": [{
         "id": 1,
         "path": "/home",
         "name": "Home",
         "is_parent": true
      },{
         "id": 2,
         "path": "/home2",
         "name": "Home2",
         "parent_id": 1
      },{
        "id": 3,
         "path": "/home3",
         "name": "Home3",
         "parent_id": 2
      }

      
      ]
};

 <BredcrumbRoute path="/home" 
  exact 
  jsonData={jsonData}
  component={(Home)}
 />

 <BredcrumbRoute path="/home2" 
	 exact 
	 jsonData={jsonData} 
	 component={(Home2)}
 />

''''

## Props

#### `jsonData` (required)
set object of jsondata

#### set root path icon 
rootPathImg



### separator
separator





## License
[MIT]

Package Sidebar

Install

npm i react-breadcrumbs-json

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

6.16 kB

Total Files

5

Last publish

Collaborators

  • satyampawar92