@neoauto-ui/breadcrumb
v1.3.2
Published
A React component that is a base Breadcrumb.
Downloads
2
Readme
Breadcrumb
Installation
yarn add @neoauto-ui/breadcrumb
Import
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink } from '@neoauto-ui/breadcrumb';
Basic Usage
<Breadcrumb>
<BreadcrumbItem>
<BreadcrumbLink to="#">
Neoauto
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem>
<BreadcrumbLink to="#">
Auto
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem isCurrentPage>
<BreadcrumbLink to="#">
Nissan XL
</BreadcrumbLink>
</BreadcrumbItem>
</Breadcrumb>
Custom Breadcrumb
It provides the pageColor, currentPageColor, hoverPageColor
style props to style the breadcrumb.
<Breadcrumb
pageColor="red"
currentPageColor="orange"
hoverPageColor="blue">
<BreadcrumbItem>
<BreadcrumbLink to="#">
Neoauto
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem>
<BreadcrumbLink to="#">
Auto
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem isCurrentPage>
<BreadcrumbLink to="#">
Nissan XL
</BreadcrumbLink>
</BreadcrumbItem>
</Breadcrumb>