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';
35
35
36
36
export default () => {
37
37
const [formData , setFormData ] = React .useState (givenFormData);
38
+
38
39
return < MaterialJsonSchemaForm
39
40
schema= {schema}
40
41
uiSchema= {uiSchema}
41
42
xhrSchema= {givenXhrSchema || {}} // Optional
43
+ theme= {} // Optional - You need to explicitly provide your custom theme from MUI5 onwards
42
44
formData= {formData}
43
45
onChange= {({ formData }) => setFormData (formData)}
44
46
onSubmit= {(submittedData ) => console .log (' form submitted' , submittedData)}
@@ -87,6 +89,7 @@ const Example () => {
87
89
uiSchema= {givenUISchema}
88
90
xhrSchema= {givenXhrSchema || {}}
89
91
formData= {formData}
92
+ theme= {} // Optional - You need to explicitly provide your custom theme from MUI5 onwards
90
93
91
94
// Define Event handlers
92
95
onChange= {onFormChanged}
You can’t perform that action at this time.
0 commit comments