import * as React from 'react';
import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
type BreadcrumbsProps = {
/**
* Index of the currently active breadcrumb.
* Defaults to the index of the last breadcrumb item.
*/
currentIndex?: number;
/**
* Breadcrumb items.
*/
children: React.ReactNode[];
/**
* Specify a custom separator element to show between breadcrumb items.
* Defaults to the `SvgChevronRight` icon.
*/
separator?: React.ReactNode;
/**
* If specified, this prop will be used to show a custom button when overflow happens,
* i.e. when there is not enough space to fit all the breadcrumbs.
*
* Expects a function that takes the number of items that are visible
* and returns the `ReactNode` to render.
*
* @example
Uses the overflow button to redirect to the previous breadcrumb
* {
* const previousBreadcrumb = visibleCount > 1 ? items.length - visibleCount : items.length - 2;
* return (
*
* {
* // click on "previousBreadcrumb"
* }}
* >
*
*
*
* );
* }}
* >
* {items}
*
*
* @example Uses the overflow button to add a dropdown that contains hidden breadcrumbs
* (
*
* Array(items.length - visibleCount)
* .fill(null)
* .map((_, _index) => {
* const index = visibleCount > 1 ? _index + 1 : _index;
* const onClick = () => {
* // click on "index" breadcrumb
* close();
* };
* return (
*
* );
* })
* }
* >
*
*
*
*
* )}
* >
* {items}
*
*/
overflowButton?: (visibleCount: number) => React.ReactNode;
};
export declare const Breadcrumbs: PolymorphicForwardRefComponent<"nav", BreadcrumbsProps> & {
/**
* Breadcrumbs item subcomponent
*
* @example
* Breadcrumb Item Title
*
* @example
* Breadcrumb Anchor Title
*
* @example
* {}}>
*/
Item: PolymorphicForwardRefComponent<"a", {}>;
};
export {};