TanStackT
TanStack11mo ago
75 replies
sacred-rose

API of Pre-bound Field Components

Could you instead of
<form.AppField
  name="fullName"
  children={(field) => 
    <field.TextField label="Full Name" />
  }
/>
do
<form.TextField
  name="fullName"
  label="Full Name"
/>
?

Idk if that is already possible or if this would need an API change. Im looking for a way to wrap the library, so that i can only use my own components, when building a form.
Was this page helpful?