Support UI.textButton
Create a text-only button.
This commit is contained in:
parent
421c71c892
commit
4d30a80487
1 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue