Custom web components

Mateu allows you to integrate any web component.

Rendering a custom element

Element.builder()
  .name("model-viewer")
  .attributes(Map.of(
    "src", src
  ))
  .build();

Injecting scripts

UICommandType.AddContentToHead

What this enables

  • use external libraries
  • extend Mateu UI