supermacro / elm-antd / Ant.Tooltip

Tooltips for your enjoyment!

tooltip : String -> Html msg -> Tooltip msg

Create a Tooltip

tooltip "helpful message"
    |> toHtml


type Tooltip msg

Represents a customizeable tooltip

toHtml : Tooltip msg -> Html msg

Convert the Tooltip into a Html msg

withPosition : TooltipPosition -> Tooltip msg -> Tooltip msg

Change the default positioning of the tooltip

tooltip "on the right"
    |> withPosition Right
    |> toHtml


type TooltipPosition
    = TopLeft
    | Top
    | TopRight
    | RightTop
    | Right
    | RightBottom
    | BottomRight
    | Bottom
    | BottomLeft
    | LeftBottom
    | Left
    | LeftTop

Defines the positioning of the Tooltip