File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
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)}
@@ -48,7 +50,7 @@ export default () => {
48
50
49
51
## Advanced Example Usage
50
52
51
- > More detailed example can be seen [ here] ( https://github.com/vip-git/react-jsonschema-form-material-ui/blob/master/src/ demo/body/Example.jsx )
53
+ > More detailed example can be seen [ here] ( https://github.com/vip-git/react-jsonschema-form-material-ui/blob/main/ demo/web/react/ body/Example.jsx#L39 )
52
54
53
55
``` jsx
54
56
// Library
@@ -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