kodobe-react-breadcrumb
v2.0.2
Published
Kodobe React Breadcrumb
Downloads
5
Readme
Kodobe React Breadcrumb
This is a simple react breadcrumb package.
Install
npm install kodobe-react-breadcrumb
or
yarn add kodobe-react-breadcrumb
Setup
import Breadcrumb from 'kodobe-react-breadcrumb';
Usage
import Breadcrumb from "kodobe-react-breadcrumb";
function App() {
return (
<div>
<h3>Here is how to use a button</h3>
<Breadcrumb
items={[
{ title: "Home", link: "/" },
{ title: "Link", link: "/link" },
{ title: "Active" },
]}
onNavigate={link => 'route to link'}
/>
</div>
);
}
Options
- items : list of 'item' object
- item : object of the structure:
- title : string
- link : optional navigation link
- style : style object
- className : string