Skip to main content
Version: 1.0.4

IBreadCrumbProps

@spartanfx/react v1.0.4


@spartanfx/react / IBreadCrumbProps

Interface: IBreadCrumbProps

Props for the BreadCrumb component.

Properties

PropertyTypeDescription
appearance?AppearanceModeAppearance mode for light or dark theme. Default AppearanceMode.light
ariaLabel?stringARIA label for the breadcrumb navigation. Default 'Breadcrumb'
classes?IBreadCrumbClassNamesCSS class name overrides for component elements.
className?stringCSS class name for the root container.
itemsIBreadCrumbItem[]Array of breadcrumb items to display.
itemsAfterCollapse?numberNumber of items to always show at the end when collapsed. Default 1
itemsBeforeCollapse?numberNumber of items to always show at the start when collapsed. Default 1
maxItems?numberMaximum number of items to display before overflow. When exceeded, items are collapsed into a dropdown. Default Infinity (no overflow)
onItemClick?(item, event) => voidCallback fired when a breadcrumb item is clicked.
overflowLabel?stringLabel for overflow menu button. Default '...'
overflowStrategy?OverflowStrategyStrategy for handling overflow when maxItems is exceeded. Default 'collapse'
renderItem?(args) => ReactNodeCustom render function for breadcrumb items. Provides full control over item rendering.
renderSeparator?(index) => ReactNodeCustom render function for the separator.
separator?ReactNodeCustom separator element between breadcrumb items. Default '/'
style?CSSPropertiesInline styles for the root container.
tokens?IBreadCrumbTokensDesign tokens for theming.