rakutentech / r10 / R10.Libu
██      ██ ██████  ██    ██
██      ██ ██   ██ ██    ██
██      ██ ██████  ██    ██
██      ██ ██   ██ ██    ██
███████ ██ ██████   ██████

Hi! I'm Libu, your new friend, half Link and half Button

I am a super-entity that will take care of all your hypertext necessity as I will let user to go wherever they want.

view : List (Element.WithContext.Attribute (R10.Context.ContextInternal z) msg) -> { type_ : Type msg, label : Element.WithContext.Element (R10.Context.ContextInternal z) msg } -> Element.WithContext.Element (R10.Context.ContextInternal z) msg


type Type msg
    = LiNewTab String
    | LiInternal String (String -> msg)
    | Li String
    | Bu (Maybe msg)

LiNewTab => A link that open in a new tab.

LiInternal => A link that prevent the default behavior of the browser, to be used in SPA so that the browser doesn't refresh.

Li => Just a link.

Bu => Just a button.