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.29k stars 81 forks source link

Textarea fieldType #2

Closed josephbona closed 11 months ago

josephbona commented 11 months ago

Allow textarea input.

Usage:


<AutoForm
  formSchema={formSchema}
  fieldConfig={{
    bio: {
      fieldType: "textarea"
    }
  }}
  onSubmit={onSubmit}
>
  <Button type="submit">Submit</Button>
</AutoForm>

// This will be rendered as:
<textarea name="bio" /* ... */ /></textarea>
vantezzen commented 11 months ago

Thanks for the contribution!