aboutsummaryrefslogtreecommitdiff
path: root/client/src/Component/Form.hs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/Component/Form.hs')
-rw-r--r--client/src/Component/Form.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/src/Component/Form.hs b/client/src/Component/Form.hs
new file mode 100644
index 0000000..6878e68
--- /dev/null
+++ b/client/src/Component/Form.hs
@@ -0,0 +1,12 @@
+module Component.Form
+ ( view
+ ) where
+
+import qualified Data.Map as M
+import Reflex.Dom (MonadWidget)
+import qualified Reflex.Dom as R
+
+view :: forall t m a. MonadWidget t m => m a -> m a
+view content =
+ R.elAttr "form" (M.singleton "onsubmit" "event.preventDefault()") $
+ content