remix-forms icon indicating copy to clipboard operation
remix-forms copied to clipboard

Expose "HTML type" or something similar to `renderField`

Open danielweinmann opened this issue 2 years ago • 3 comments

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.

danielweinmann avatar Sep 10 '22 13:09 danielweinmann