Embed Elm-UI into HTML Page

Yes, you can convert your Element msg into an Html msg using the Element.layout function.

You can also convert the other way, embedding HTML inside an element via the Element.html function. This means you can have HTML inside an element inside HTML inside an element …

You can see an example in this old gamejam project. I have an elm/html button inside an elm-ui row inside an elm/html div.

1 Like