upsiflu / less-ui

Write your views across several screen regions, and hide all Ui state in the Url.
https://package.elm-lang.org/packages/upsiflu/less-ui/latest
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Nicer glue API for common widget libraries #13

Closed upsiflu closed 1 year ago

upsiflu commented 1 year ago

elm-ui

link :

 List (Attribute msg)
 -> { url : String
    , label : Element msg
    }
 -> Element msg

also: newTabLink, download, downloadAs

elm-widgets-alpha

viewLink :

List (Attribute msg)
-> { label : List (Html msg)
   , href : String
   }
-> Html msg

Same interface in the modules Tag, Menu, and Button

Pagination.viewLinks :

List (Attribute msg)
-> { total : Int
   , active : Int
   , href : Int -> String
   }
-> Html msg

elm-w3

a :

List
    (GlobalAttributes
        { href : SupportedAttribute
        , target : SupportedAttribute
        , download : SupportedAttribute
        , ping : SupportedAttribute
        , rel : SupportedAttribute
        , hreflang : SupportedAttribute
        , type_mime : SupportedAttribute
        , referrerpolicy : SupportedAttribute
        }
        msg
    )
-> List Node FlowContent msg
-> Node { compatible | a : Supported } msg
upsiflu commented 1 year ago

I made Ui.toggle, Ui. bounce, Ui.goTo follow this path.