Create a button with a Primary visual weight and a default size.
Create a button with a callOut visual weight and a default size.
--
import Prima.Pyxis.Button as Button
type Msg =
Clicked
...
myBtn : Button.Config Msg
myBtn =
Button.primary "Click me!"
|> Button.withOnClick ClickedCreate a button with a Primary Alt visual weight and a default size.
Create a button with a Secondary Alt visual weight and a default size.
Create a button with a Tertiary Alt visual weight and a default size.
Renders the button by receiving it's configuration.
--
import Prima.Pyxis.Button as Button
type Msg =
Clicked
...
myBtn : Button.Config Msg
myBtn =
Button.callOut "Click me!"
|> Button.withDisabled False
|> Button.withOnClick Clicked
...
view : Html Msg
view =
Button.render myBtnAdds a generic attribute to the Button.
Adds a disabled Html.Attribute to the Button.
Sets a size of Medium to the Button.
Sets a size of Small to the Button.
Sets a size of Tiny to the Button.
Adds a tabIndex Html.Attribute to the Button.
Adds a target Html.Attribute to the Button.
Adds a target Html.Attribute to the Button.
Adds a target Html.Attribute to the Button.
Adds a target Html.Attribute to the Button.
Adds a type Html.Attribute to the Button.
Adds a type Html.Attribute to the Button.
Adds a type Html.Attribute to the Button.
Sets a emphasis of Loading to the Button.
Adds an onClick Html.Event to the Button.
Adds an onMouseDown Html.Event to the Button.
Adds an onMouseUp Html.Event to the Button.
Adds an onMouseEnter Html.Event to the Button.
Adds an onMouseLeave Html.Event to the Button.
Adds an onMouseOver Html.Event to the Button.
Adds an onMouseOut Html.Event to the Button.
Represent the configuration of the
Button.