mc706/prefab-ui/3.0.1

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
= 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