Select Field?
What's the proper way of adding a field like a Select to get typesafety with all the different values ? I'm just hard coding them for now.
The type is a union of the options | null | undefined.
Maybe would be a good idea to add more examples of other inputs like https://ui.shadcn.com/docs/components/form#examples
On another note, the TS Form examples don't use Shadcn.. considering its popularity it might be a good idea to add an example using shadcn standard components (since this uses MUI https://tanstack.com/form/latest/docs/framework/react/examples/ui-libraries)
React TanStack Form Ui Libraries) Example | TanStack Form Docs
An example showing how to implement Ui Libraries) in React using TanStack Form.
React Hook Form
Building forms with React Hook Form and Zod.
0 Replies