Breadcrumbs Navigation for React App. With this Package, you can use Breadcrumbs Navigation very easily. There is no need for server response it can work on the client side.
Install Breadcrumbs with npm
npm i breadcrumbs-nav
import Breadcrumbs from "breadcrumbs-nav";
function App() {
return <Breadcrumbs />;
}
export default App;
Default | Home Icon Change | Seperator Icon Change |
---|---|---|
import Breadcrumbs from "breadcrumbs-nav";
<Breadcrumbs />
Here you can add icon component, For example here used react-icons component. If you want can use custom icon or text
import { FaHome } from "react-icons/fa";
<Breadcrumbs homeIcon={<FaHome />} />;
Here you can add icon component, For example here used react-icons component. If you want can use custom icon or text
import { IoChevronForward } from "react-icons/io5";
<Breadcrumbs separatorIcon={<IoChevronForward />} />;
Two diffrent CSS class props available here, you can change style by addting class name in this props. Examaple in below-
<Breadcrumbs className="py-1" classNameText="pl-2" />
Parameter | Type | Description |
---|---|---|
className |
string |
You can add class for main Breadcrumbs div. Ex- color, font-style etc. |
classNameText |
string |
You can add class for bread text. Ex- font-style, color, padding etc. |
homeIcon |
string |
Default Home icon, but you change it by text or icon component. |
separatorIcon |
string |
Default ChevronForward icon, but you change it by text or icon component. |
I'm a MERN stack developer...