JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q53868F
  • License ISC

A React component that is a base Breadcrumb.

Package Exports

  • @neoauto-ui/breadcrumb
  • @neoauto-ui/breadcrumb/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@neoauto-ui/breadcrumb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Breadcrumb

Installation

yarn add @neoauto-ui/breadcrumb

Import

import { Breadcrumb, BreadcrumbItem, BreadcrumbLink } from '@neoauto-ui/breadcrumb';

Basic Usage

  <Breadcrumb>
    <BreadcrumbItem>
      <BreadcrumbLink href="#">
         Neoauto
      </BreadcrumbLink>
    </BreadcrumbItem>
    <BreadcrumbItem>
      <BreadcrumbLink href="#">
         Auto
      </BreadcrumbLink>
    </BreadcrumbItem>
    <BreadcrumbItem isCurrentPage>
      <BreadcrumbLink href="#">
         Nissan XL
      </BreadcrumbLink>
    </BreadcrumbItem>
  </Breadcrumb>
</Playground>

Custom Breadcrumb

It provides the pageColor, currentPageColor, hoverPageColor style props to style the breadcrumb.

  <Breadcrumb
    pageColor="red"
    currentPageColor="orange"
    hoverPageColor="blue">
    <BreadcrumbItem>
      <BreadcrumbLink href="#">
         Neoauto
      </BreadcrumbLink>
    </BreadcrumbItem>
    <BreadcrumbItem>
      <BreadcrumbLink href="#">
         Auto
      </BreadcrumbLink>
    </BreadcrumbItem>
    <BreadcrumbItem isCurrentPage>
      <BreadcrumbLink href="#">
         Nissan XL
      </BreadcrumbLink>
    </BreadcrumbItem>
  </Breadcrumb>