diff options
author | William Carroll <wpcarro@gmail.com> | 2020-07-31T18·32+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-07-31T18·32+0100 |
commit | 4d30a80487fae26e9b0395270dec1a1792a67b6a (patch) | |
tree | 8316d9caaedd1d3dbca7992027570ac7c492ace7 /client/src/UI.elm | |
parent | 421c71c8922731563771ed75be7f28c9a559c068 (diff) |
Support UI.textButton
Create a text-only button.
Diffstat (limited to 'client/src/UI.elm')
-rw-r--r-- | client/src/UI.elm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/src/UI.elm b/client/src/UI.elm index 565771e2120d..28b73a8ae9fe 100644 --- a/client/src/UI.elm +++ b/client/src/UI.elm @@ -124,6 +124,26 @@ simpleButton { label, handleClick } = } +textButton : + { label : String + , handleClick : msg + } + -> Html msg +textButton { label, handleClick } = + button + [ [ "text-blue-600" + , "hover:text-blue-500" + , "font-bold" + , "hover:underline" + , "focus:outline-none" + ] + |> Tailwind.use + |> class + , onClick handleClick + ] + [ text label ] + + textField : { pholder : String , inputId : String |