sxh / ui-base / UiBase.Help

Provide control structues and a method for adding onHover help text

Control the visibility of the help


type alias HelpControl msg =
{ toggle : Basics.Bool -> msg
, state : Basics.Bool 
}

Toggle is sent each time hovering starts or ends, with the current open/closed state

Formatting

withHelp : List String -> Maybe (HelpControl msg) -> Element msg -> Element msg

Add an info icon to the right of the element passed in