Skip to main content
Version: 1.0

Recipe Tags

info

Recipe Tags are currently a CSR feature and are being rethought for improvement.

Product behaviour and UX: see the SSR docs — Recipe Tags (also Web SDK / CSR).

MealzUIKit still exposes a native embed so you can place the tag on each line of your retailer basket / cart UI, next to the product that was added from a Mealz recipe. Pass your external product id (the SKU / id in your catalog). If that product was not added via Mealz, the tag stays empty / hidden.

Parameters​

ParameterTypeRequiredDefaultWhat it does
externalProductIdStringyes—Your product id (same id family as basket sync / POS). Used to look up Mealz recipes that contributed this product.
navigationCallbackRecipeTagNavigationCallbackyes—Host navigation when the shopper opens a recipe from the tag modal.
modifierCompose ModifiernoModifierLayout sizing (KMM / Compose). Height is fixed by the library.
stateContentWebScreenStateContent / platform StateContentnolibrary defaultOptional loading / empty overlays for the embedded WebView.

RecipeTagNavigationCallback​

CallbackSignatureWhat you must do
goToRecipeDetails(DisplayRecipe) -> UnitOpen your recipe-details screen (or Mealz RecipeDetailsScreen) for that recipe (typically a FromMealzRecipeId).

Base NavigationCallback redirects (redirectToLogIn, redirectToStoreLocator, redirectToCart, exit) default to no-ops on this component — only goToRecipeDetails matters.

Inject​

RecipeTag(
    externalProductId = "sku-123",
    navigationCallback = RecipeTagNavigationCallback(
        goToRecipeDetails = { mealzRecipe ->
            // Navigate to RecipeDetailsScreen(displayRecipe = mealzRecipe, …)
        }
    )
)