1.0.10 • Published 5 years ago

@crpt/react-breadcrumbs v1.0.10

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Breadcrumbs

Breadcrumbs component with onClick callback.

Usage

import { Breadcrumbs } from  "@crpt/react-breadcrumbs";

<Breadcrumbs breadcrumbs={[{
      href: "index",
      title: "Main",
      id: 1
    },
      {
      href: "catalog",
      title: "Complaints",
      id: 2
    },{
      href: "catalog-item",
      title: "Complaint #445612",
      id: 3
    }]}
/>
PropNameDescriptionExample
breadcrumbs: Array (Required)List of objects with format {href: "", title: "Main", id: 1}.<Breadcrumbs breadcrumbs={[{id:1, href: "index", title: "Main page"}]} />
onClick: FunctionFired on any link click.<Breadcrumbs onClick={val => console.log(val)} />
withCustomLinks: BooleanIf true, no link are followed. Default=true.<Breadcrumbs withCustomLinks />
1.0.10

5 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago