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: be able to reorder fields #63

Open capaj opened 3 months ago

capaj commented 3 months ago

I am generating schemas from drizzle tables so I don't control order of fields. Would be awesome to be able to reorder in fieldconfig

feliche93 commented 1 month ago

Not the full answer, but I am currently using pick to get around this:

export const SNewWebsiteForm = createInsertSchema(xx).pick({
  firstField: true,
  secondField: True,
})

This will orderi t for me, at least. Not perfect, but most often I need to kick out some fields anyways.