mc706 / prefab-ui / Prefab.Link

A link styled as a button.

Link

Styles like buttons

Creating

new : { label : String, path : String } -> Link msg

Create a new link styled as a button

view : List (Element.Attribute msg) -> Link msg -> Element msg

View the link styled as a button

Modifying

withIconLeft : FontAwesome.Icon msg -> Link msg -> Link msg

Add an icon to the left of the button

withIconRight : FontAwesome.Icon msg -> Link msg -> Link msg

Add an icon to the right of the button

withSize : Size -> Link msg -> Link msg

Modify the size of the button

withStyle : Style -> Link msg -> Link msg

Modify the style of the button

withVariant : Variant -> Link msg -> Link msg

Modify the variant of the button

Types


type Size
    = Normal
    | Small
    | Large

The size of the button


type Style
    = Primary
    | Secondary
    | Success
    | Danger
    | Warning
    | Info

The style of the button


type Variant
    = Solid
    | Outline
    | Flat

The style of the button