Skip to main content

IBreadCrumbProps

@spartanfx/react v1.2.2


@spartanfx/react / index / IBreadCrumbProps

Interface: IBreadCrumbProps

Props for the BreadCrumb component.

Properties

Required

PropertyTypeDefaultDescription
itemsIBreadCrumbItem[]-Array of breadcrumb items to display.

Options

PropertyTypeDefaultDescription
ariaLabel?string'Breadcrumb'ARIA label for the breadcrumb navigation.
itemsAfterCollapse?number1Number of items to always show at the end when collapsed.
itemsBeforeCollapse?number1Number of items to always show at the start when collapsed.
maxItems?numberInfinity (no overflow)Maximum number of items to display before overflow. When exceeded, items are collapsed into a dropdown.
overflowLabel?string'...'Label for overflow menu button.
overflowStrategy?OverflowStrategy'collapse'Strategy for handling overflow when maxItems is exceeded.
separator?ReactNode'/'Custom separator element between breadcrumb items.

Events & callbacks

PropertyTypeDefaultDescription
onItemClick?(item, event) => void-Callback fired when a breadcrumb item is clicked.
renderItem?(args) => ReactNode-Custom render function for breadcrumb items. Provides full control over item rendering.
renderSeparator?(index) => ReactNode-Custom render function for the separator.

Appearance & theming

PropertyTypeDefaultDescription
appearance?AppearanceModeAppearanceMode.lightAppearance mode for light or dark theme.
classes?IBreadCrumbClassNames-CSS class name overrides for component elements.
className?string-CSS class name for the root container.
style?CSSProperties-Inline styles for the root container.
tokens?IBreadCrumbTokens-Design tokens for theming.