File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,12 @@ import givenFormData from '../simple/form-data.json';
3535
3636export default () => {
3737 const [formData , setFormData ] = React .useState (givenFormData);
38+
3839 return < MaterialJsonSchemaForm
3940 schema= {schema}
4041 uiSchema= {uiSchema}
4142 xhrSchema= {givenXhrSchema || {}} // Optional
43+ theme= {} // Optional - You need to explicitly provide your custom theme from MUI5 onwards
4244 formData= {formData}
4345 onChange= {({ formData }) => setFormData (formData)}
4446 onSubmit= {(submittedData ) => console .log (' form submitted' , submittedData)}
@@ -87,6 +89,7 @@ const Example () => {
8789 uiSchema= {givenUISchema}
8890 xhrSchema= {givenXhrSchema || {}}
8991 formData= {formData}
92+ theme= {} // Optional - You need to explicitly provide your custom theme from MUI5 onwards
9093
9194 // Define Event handlers
9295 onChange= {onFormChanged}
You can’t perform that action at this time.
0 commit comments