Open pravdomil opened 3 years ago
@pravdomil
From the docs:
This library is a complete alternative to HTML and CSS.
So the intention is to avoid using HTML/CSS. The fact that elm-ui is currently is implemented via HTML/CSS (and not WebGL for example) is an implementation detail, not a first-class feature. Therefore, there is no place for id
in the API.
In any case, we can currently do:
id : String -> Element.Attribute msg
id =
Html.Attributes.id >> Element.htmlAttribute
Ids are nessesary for
Browser.Dom
things.