mc706/prefab-ui/1.0.0

NOTE: the latest version is 5.1.0

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 (Attribute msg) -> Link msg -> Element msg

View the link styled as a button

Modifying

withIconLeft : Icon msg -> Link msg -> Link msg

Add an icon to the left of the button

withIconRight : 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

The size of the button

type Style

The style of the button

type Variant

The style of the button