Skip to content

Commit ad9c947

Browse files
committed
Merge branch 'main' of github.com:vip-git/react-jsonschema-form-material-ui
2 parents e76ecd6 + 184f294 commit ad9c947

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ import givenFormData from '../simple/form-data.json';
3535

3636
export 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)}
@@ -48,7 +50,7 @@ export default () => {
4850

4951
## Advanced Example Usage
5052

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)
5254
5355
```jsx
5456
// Library
@@ -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}

0 commit comments

Comments
 (0)