Breadcrumb
Breadcrumb Item
Breadcrumb props
Name | Type | Default | Description |
---|---|---|---|
children | react node | Children | |
gap | number | 4 | Gap 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 |
BreadcrumbItem props
Name | Type | Default | Description |
---|---|---|---|
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.
Breadcrumb exports
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