support optional fields
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
module Form.Input
|
||||
( string,
|
||||
( input,
|
||||
)
|
||||
where
|
||||
|
||||
@@ -8,8 +8,8 @@ import Form.Internal
|
||||
import Miso
|
||||
import Miso.String (fromMisoString, toMisoString)
|
||||
|
||||
string :: String -> Form T.Text T.Text
|
||||
string label =
|
||||
input :: String -> Form T.Text T.Text
|
||||
input label =
|
||||
Form
|
||||
{ view = \i ->
|
||||
[ div_ [] $
|
||||
|
||||
Reference in New Issue
Block a user