Renders a breadcrumbs component with customizable items and actions.

  • Type Parameters

    • T extends unknown = any

      The type of payload data.

    Parameters

    • props: IBreadcrumbs2Props<T>

      The props object.

      • className

        The class name for the component container.

      • style

        The inline styles for the component container.

      • sx

        The sx prop for the component container.

      • onAction

        The callback function to be called when an action is performed.

      • items

        The array of breadcrumb items.

      • actions

        The array of actions to be displayed in the action menu.

      • payload

        The payload data.

      • BeforeMenuContent

        The custom content to be displayed before the action menu.

      • AfterMenuContent

        The custom content to be displayed after the action menu.

      • onLoadStart

        The callback function to be called when the component is loading.

      • onLoadEnd

        The callback function to be called when the component finishes loading.

      • fallback

        The fallback component to be displayed while loading.

      • throwError

        Whether to throw an error on loading failure.

    Returns Element

    The breadcrumbs component.