Breadcrumb


Breadcrumb Item

Custom seperator

Usage with enhancer

Page for Link 2

Content for Link 2

Default tag according to the href prop

NameTypeDefaultDescription
children
react node
Children
gap
number
4Gap between sepearator and links
overrides
custom
Lets you customize all aspects of the component.
separator
react node
Seperator in Links, By Default it is > Icon
NameTypeDefaultDescription
children
react node
Children
endEnhancer
function
A component rendered at the end of the breadcrumb item.
href
string
The URL that the hyperlink points to.
onClick
function
Function called when link is clicked. It will be called with 2 props one the event Handler and second the index of the Link clicked
overrides
custom
Lets you customize all aspects of the component.
separator
react node
Edit the separator next to it and overrides the default separator, By Default it is > Icon
startEnhancer
function
A component rendered at the start of the breadcrumb item.

You can check the implementation of the component for more details.

You can import this module like so:

import {Breadcrumb} from 'spaceweb/breadcrumb'

It exports the following components or utility functions:

  • Breadcrumb
  • BreadcrumbItem
  • DEFAULT_SEPARATOR
  • StyledEndEnhancer
  • StyledListItem
  • StyledSeparator
  • StyledStartEnhancer
  • StyledWrapper