2.0.2 • Published 1 year ago

@brighthr/component-breadcrumb v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Breadcrumb

Previously the Breadcrumb took a routes prop which was an object that contained the href, the name of the breadcrumb to display, and an optional iconName, which was rendered within the component as an a tag. This meant that it wasn't possible to utilise the Link from React-Router or NextJS, so the decision was made in version 2.0 to make the component less opinionated let the consuming app dictate the kind of link to display.

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-breadcrumb

To implement the Breadcrumb component into your project you’ll need to add the import:

import Breadcrumb from '@brighthr/component-breadcrumb';

After adding import into your project you can use it simply like:

<Breadcrumb>
    <Link> First Page</Link>
    <Link> Second Page</Link>
    <Link> Third Page</Link>
</BreadCrumb>

Props

NameTypeDefaultDescription
currentPagestringSets the text to display what the current page is.
size'sm' 'base' 'lg' 'xl''base'Sets the size of the breadcrumb.
2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.1.5

1 year ago

1.1.4

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago