Renders a breadcrumb component with optional save button and action menu.

  • Type Parameters

    • T extends unknown = any

      The type of payload used by the actions.

    Parameters

    • props: IBreadcrumbsProps<T>

      The component props.

      • onSave

        The callback function called when save button is clicked.

      • onBack

        The callback function called when breadcrumb is clicked.

      • onAction

        The callback function called when an action is selected from the menu.

      • actions

        The list of actions to display in the menu.

      • saveDisabled

        Whether the save button should be disabled.

      • payload

        The payload object passed to the actions.

      • title

        The title text for the breadcrumb.

      • subtitle

        The subtitle text for the breadcrumb.

      • withSave

        Whether the save button should be displayed.

      • BeforeMenuContent

        The optional content to display before the action menu.

      • AfterMenuContent

        The optional content to display after the action menu.

    Returns Element

    The rendered breadcrumb component.