gdotdesign / elm-ui

UI library for making web applications with Elm
https://elm-ui.netlify.com
BSD 2-Clause "Simplified" License
920 stars 39 forks source link

Have a clear button on text/search fields #32

Closed iqualfragile closed 7 years ago

iqualfragile commented 7 years ago

at least optionally, maybe depending on user os. its really comfortable to have those if you are using an os where you can select-and-middle-mouse-button to copy and paste.

gdotdesign commented 7 years ago

It has been added thanks to (eimfach) and will be available in the next release.

Usage:

input = Ui.Input.init "value" "placeholder"
inputWithClear = { input | showClearIcon = True }
gdotdesign commented 7 years ago

Available in 0.4.3

iqualfragile commented 7 years ago

thanks for the work @eimfach & @gdotdesign