open React (* putting this inline messes with ocamlformat-mlx *) let req_marker = " *" let[@react.component] make ?id ~name ?(className = "") ?(type_ = "text") ?label ?(sr_only = false) ?value ?defaultValue ?placeholder ?autoComplete ?pattern ?inputMode ?(required = false) ?(disabled = false) ?trailing ?(showIndicator = true) ?onChange () = let id = Option.value id ~default:name in let placeholder = if label <> None && sr_only then label else placeholder in let input = in