Skip to content

Add ability to define field level configurations outside of JSX? #1202

Answered by crutchcorn
juanvilladev asked this question in Ideas
Discussion options

You must be logged in to vote

After talking with @juanvilladev on Discord, we decided on an API to do this:

const firstNameOpts = fieldOptions({
    // Infer the types from `formOptions`
    ...formOpts,
    // Add field-specific APIs
    validator: {/* ... */}
});

We'll track more progress in #1201 with the API updates. Thanks for this idea!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crutchcorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants