Skip to content

Commit 0d092bc

Browse files
committed
Updated global component props docs example.
1 parent 880cb00 commit 0d092bc

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import RawComponent from '@docs/raw-component';
1+
import Grid from '@material-ui/core/Grid'
2+
3+
import CodeExample from '../../src/components/code-example'
4+
import ListOfContents from '../../src/helpers/list-of-contents';
5+
6+
<Grid container item>
7+
<Grid item xs={12} md={10}>
28

39
# Global component props
410

@@ -8,10 +14,16 @@ Always keep in mind, that the props depend on component mapper.
814

915
## Adding global prop to
1016

11-
<RawComponent source="global-component-props/add-global-prop-to-component"/>
17+
<CodeExample source="components/global-component-props/add-global-prop-to-component" mode="preview" mapper="mui"/>
1218

1319
## Props priority
1420

1521
Props from **schema** have **higher** priority and will override the global props from mappers.
1622

17-
<RawComponent source="global-component-props/props-priority"/>
23+
<CodeExample source="components/global-component-props/props-priority" mode="preview" mapper="mui"/>
24+
25+
</Grid>
26+
<Grid item xs={false} md={2}>
27+
<ListOfContents file="renderer/global-component-props" />
28+
</Grid>
29+
</Grid>

0 commit comments

Comments
 (0)