Skip to content

How to pass down additional props to Form #2880

Discussion options

You must be logged in to vote

From the looks of it, the antd theme isn't actually using the specific Form from Ant Design. Perhaps that is the issue. It is possible for you to customize your instance and use the _internalFormWrapper prop on the @rjsf Form to switch in the Ant Design form yourself... You would do something like the following (note this code is being typed in this editor and will need to be updated accordingly):

import Form from `@rjsf/antd`;
import { Form as AntdForm } from `antd`;
function MyForm(props) {
  return <AntdForm {...props} size={xxx} />;
}

<Form _internalFormWrapper={MyForm} schema={your_schema} />

Replies: 1 comment

Comment options

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