PaackEng/paack-ui/1.0.0

NOTE: the latest version is 7.23.0

UI.Radio

Accessible and uniform-styled implementation of a radio buttons.

-> String
-> (a -> msg)
-> Maybe a
-> List ( a, String )
-> Element msg

An atomic function that defines the options, which one is selected, the selecting message, and renders it all to an Element.

Radio.group renderConfig
    "Pick a favorite animal:"
    (Just Felines)
    [ ( Felines, "Felines" )
    , ( Canines, "Canines" )
    , ( Birds, "Birds" )
    ]