remix-forms
remix-forms copied to clipboard
Expose "HTML type" or something similar to `renderField`
Right now, it's not that simple to infer if a field is a ZodString
with an email
check from inside renderField
.
We could make shapeInfo
parse this information and expose it somehow, to help users who want to render email fields differently from other inputs do so. In the meantime, I'm sharing a partial solution on #81.