diff options
Diffstat (limited to 'bs5/universal/native/shared/InputText.re')
-rw-r--r-- | bs5/universal/native/shared/InputText.re | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bs5/universal/native/shared/InputText.re b/bs5/universal/native/shared/InputText.re new file mode 100644 index 0000000..011ba38 --- /dev/null +++ b/bs5/universal/native/shared/InputText.re @@ -0,0 +1,15 @@ +[@react.component] +let make = (~value, ~onChange, ~id="", ~placeholder="") => + <input + className={Cx.make([ + "m-0 py-2 px-4", + "rounded-md", + Theme.background(Theme.Color.Gray1), + Theme.text(Theme.Color.Gray12), + ])} + id + placeholder + type_="text" + value + onChange + />; |