mdgriffith / elm-ui

What if you never had to write CSS again?
https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/
BSD 3-Clause "New" or "Revised" License
1.34k stars 110 forks source link

Feature request: from Html.Styled #335

Open Tails opened 2 years ago

Tails commented 2 years ago

Currently there is the htmlfunction available to convert a Html.Html value to an Element. However, part of my layout is using Html.Styled.Html (Elm-CSS). It would be great if a convertor was available to create an Element from a Styled, like htmlStyled.

NduatiK commented 2 years ago

Could you go from Html.Styled to Html to Element?

htmlStyled = 
    Html.Styled.toUnstyled >> Element.html