Skip to content

Breadcrumb

<bh-breadcrumb> | BharatBreadcrumb

Breadcrumb component provides a navigation aid that helps users understand their location within a website or application.

Basic Usage

Separators

Use the variant or separator attribute to change the separator style.

Open in flex-shrink: 0; flex-shrink: 0;

Default (Slash)

Chevron

Arrow

Dot

Custom

Auto-Generated Breadcrumbs

Use the autoGenerate property to automatically generate breadcrumbs from the current path.

PropertyTypeDescription
separatorstringThe separator character between breadcrumb items
variantstringPredefined separator styles (chevron, arrow, dot, slash)
fontSizestringFont size for breadcrumb items
fontWeightstringFont weight for breadcrumb items
maxWidthstringMaximum width of the breadcrumb container
themestringTheme variant for the breadcrumb
homeIconstringIcon to use for the home item
withBackgroundbooleanWhether to show a background behind the breadcrumb
rtlbooleanRight-to-left text direction
animatedbooleanWhether to animate breadcrumb items
collapsiblebooleanWhether the breadcrumb can be collapsed
responsivebooleanWhether to show a responsive view for long breadcrumbs
maxItemsnumberMaximum number of items to show when responsive
homePathstringPath for the home item
autoGeneratebooleanWhether to auto-generate breadcrumbs from the path
currentPathstringCurrent path to use for auto-generation
hideHomebooleanWhether to hide the home item
capitalizebooleanWhether to capitalize labels
truncateLabelsbooleanWhether to truncate long labels
truncateLengthnumberMaximum length of labels before truncation
PropertyTypeDescription
labelstringText label for the breadcrumb item
pathstringNavigation path for the breadcrumb item
iconstringIcon to display with the breadcrumb item
activebooleanWhether this is the active/current item
colorstringText color for the breadcrumb item
truncatebooleanWhether to truncate the label if too long
disabledbooleanWhether the breadcrumb item is disabled
animatedbooleanWhether to animate the breadcrumb item
tooltipstringTooltip text for the breadcrumb item
iconPositionstringPosition of the icon (left or right)