Skip to content

Commit 889f29b

Browse files
authored
Update README.md
1 parent 17264cd commit 889f29b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
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)}
@@ -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)