Last active
January 19, 2022 13:46
-
-
Save duncanmalashock/6812059beb9589c704122a06f0afbd8d to your computer and use it in GitHub Desktop.
"Config" Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ExampleUsage exposing (view) | |
import Button | |
import Icon exposing (Icon) | |
import Html exposing (Html) | |
view : Html msg | |
view = | |
Button.config | |
{ onClick = ButtonClicked | |
, label = "Click me!" | |
} | |
|> Button.withIcon Icon.Okay | |
|> Button.withSizeLarge | |
|> Button.view |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment