vantezzen / auto-form

🌟 A React component that automatically creates a @shadcn/ui form based on a zod schema.
https://vantezzen.github.io/auto-form/
2.27k stars 81 forks source link

feature request: introduce fieldRender #64

Open capaj opened 3 months ago

capaj commented 3 months ago

Alternatively, you can pass a React component to the fieldType property to use a custom component.

overloading fieldType to render the component when you pass a function is not very nice ideally we could have fieldRender or similar. I know naming is hard, but this Render suffix is well established naming pattern. Also overloaded fields often give weird typescript errors.