Components
Breadcrumb

Breadcrumb

Breadcrumb is a navigation aid which helps user to understand current location in the website hierarchy.

Import

import { VKBreadCrumbs } from "@vivakits/react-components";

Seperator

The seperator prop is an icon component or simply an icon to be displayed between breadcrumb items. This functions as path seperator.

Multiple Separators

The separators prop allows to use different separators for each breadcrumb item. This provides more flexibility in designing navigation hierarchy.

Separator Styling

The separatorClassName prop allows to apply custom styles to the separator elements.

Option

The options prop is an array of objects that represents the breadcrumb items. Each object here contains title that displays the text for the breadcrumb item and href which contains the URL of the breadcrumb item. It also accepts icon to display icons before the title and renderDropDown to render custom dropdown menu.

WrapperClass

The wrapperClass prop is a CSS class used to style the wrapper of the breadcrumb items. If wrapperClass is not provided then the component uses the default style.

Style

The style prop is inline style to be applied to the breadcrumb wrapper, item, link, and href. It provides freedom to particularly style the other props.

Underline

The underline is a boolean prop that determines if the breadcrumb link should be underlined or not. It has default value set to true.

API Reference

AttributeTypeDescriptionDefault
separatorstring | React.ReactNodeDefines the separator between breadcrumb items -
separators(string | React.ReactNode)[]Array of different separators for each breadcrumb item -
separatorClassNamestringCustom CSS class for styling separators -
optionsarray itemsSpecifies the breadcrumb items and their properties -
wrapperClassstringAdditional CSS class(es) to apply to the breadcrumb wrapper -
underlinebooleanSpecifies whether breadcrumb items should be underlined false
stylebgwrapperitemlinkhrefSpecifies custom styles for breadcrumb elements -

BreadcrumbStyle types

AttributeTypeDescriptionDefault
bgstringCustom background style for breadcrumbs -
wrapperstringCustom wrapper style for the breadcrumb container -
itemstringCustom style for individual breadcrumb items -
linkstringCustom style for the breadcrumb links -
hrefstringCustom style for the breadcrumb href elements -