Props for Breadcrumbs component.

interface Props {
    items?: Breadcrumb[];
    active?: Breadcrumb;
    prefix?: boolean;
}

Properties

items?: Breadcrumb[]

List of breadcrumbs; usually base section path (e.g. home / customer).

Optional, because active may be for example only "home" breadcrumb, thus items are not needed.

active?: Breadcrumb

Active breadcrumb; usually current page (e.g. [home / customer ] / edit).

Reason for separation is to keep the base path in a standalone component (like CustomerBreadcrumbs) and active piece as a standalone, simply overridable piece.

prefix?: boolean

If true, breadcrumb renders last separator.