Skip to content

MicroFrontend

Embeds another Mateu UI route as a nested micro-frontend inside the current page. Allows composing independent UI applications.

MicroFrontend.builder()
.baseUrl("/other-app")
.route("/dashboard")
.consumedRoute("")
.build()
PropertyTypeDefaultDescription
baseUrlStringBase URL of the remote Mateu UI
routeStringRoute within the remote app to load
consumedRouteStringRoute prefix consumed by the host page
styleStringInline CSS
cssClassesStringCSS class names
MicroFrontend.builder()
.baseUrl("/fluent") // the embedded app's base path
.route("/components/card") // the specific page to show
.consumedRoute("") // how much of the URL this host page "consumes"
.build()

MicroFrontend is useful when:

  • different teams own different parts of the UI
  • you want to embed a Mateu UI into a larger shell application
  • you need lazy-loading of independently deployed UI modules