);
}
diff --git a/docs/src/pages/components/progress/CircularStatic.tsx b/docs/src/pages/components/progress/CircularStatic.tsx
index d0bd994a5c5eff..822f175feb5945 100644
--- a/docs/src/pages/components/progress/CircularStatic.tsx
+++ b/docs/src/pages/components/progress/CircularStatic.tsx
@@ -4,8 +4,11 @@ import CircularProgress from '@material-ui/core/CircularProgress';
const useStyles = makeStyles((theme: Theme) =>
createStyles({
- progress: {
- margin: theme.spacing(2),
+ root: {
+ display: 'flex',
+ '& > * + *': {
+ marginLeft: theme.spacing(2),
+ },
},
}),
);
@@ -26,13 +29,13 @@ export default function CircularStatic() {
}, []);
return (
-
-
-
-
-
-
-
+
+
+
+
+
+
+
);
}
diff --git a/docs/src/pages/components/progress/LinearBuffer.js b/docs/src/pages/components/progress/LinearBuffer.js
index ee82c5526c036c..138dc15baac151 100644
--- a/docs/src/pages/components/progress/LinearBuffer.js
+++ b/docs/src/pages/components/progress/LinearBuffer.js
@@ -2,11 +2,14 @@ import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import LinearProgress from '@material-ui/core/LinearProgress';
-const useStyles = makeStyles({
+const useStyles = makeStyles(theme => ({
root: {
- flexGrow: 1,
+ width: '100%',
+ '& > * + *': {
+ marginTop: theme.spacing(2),
+ },
},
-});
+}));
export default function LinearBuffer() {
const classes = useStyles();
@@ -42,8 +45,7 @@ export default function LinearBuffer() {
return (
-
-
+
);
}
diff --git a/docs/src/pages/components/progress/LinearBuffer.tsx b/docs/src/pages/components/progress/LinearBuffer.tsx
index ee82c5526c036c..12419fa05e4f56 100644
--- a/docs/src/pages/components/progress/LinearBuffer.tsx
+++ b/docs/src/pages/components/progress/LinearBuffer.tsx
@@ -1,12 +1,17 @@
import React from 'react';
-import { makeStyles } from '@material-ui/core/styles';
+import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import LinearProgress from '@material-ui/core/LinearProgress';
-const useStyles = makeStyles({
- root: {
- flexGrow: 1,
- },
-});
+const useStyles = makeStyles((theme: Theme) =>
+ createStyles({
+ root: {
+ width: '100%',
+ '& > * + *': {
+ marginTop: theme.spacing(2),
+ },
+ },
+ }),
+);
export default function LinearBuffer() {
const classes = useStyles();
@@ -42,8 +47,7 @@ export default function LinearBuffer() {
return (
-
-
+
);
}
diff --git a/docs/src/pages/components/progress/LinearDeterminate.js b/docs/src/pages/components/progress/LinearDeterminate.js
index 315bdfb71da40e..dbb52c7ebe9684 100644
--- a/docs/src/pages/components/progress/LinearDeterminate.js
+++ b/docs/src/pages/components/progress/LinearDeterminate.js
@@ -2,11 +2,14 @@ import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import LinearProgress from '@material-ui/core/LinearProgress';
-const useStyles = makeStyles({
+const useStyles = makeStyles(theme => ({
root: {
- flexGrow: 1,
+ width: '100%',
+ '& > * + *': {
+ marginTop: theme.spacing(2),
+ },
},
-});
+}));
export default function LinearDeterminate() {
const classes = useStyles();
@@ -32,8 +35,7 @@ export default function LinearDeterminate() {
return (
-
-
+
);
}
diff --git a/docs/src/pages/components/progress/LinearDeterminate.tsx b/docs/src/pages/components/progress/LinearDeterminate.tsx
index 315bdfb71da40e..64d74b1ebecf17 100644
--- a/docs/src/pages/components/progress/LinearDeterminate.tsx
+++ b/docs/src/pages/components/progress/LinearDeterminate.tsx
@@ -1,12 +1,17 @@
import React from 'react';
-import { makeStyles } from '@material-ui/core/styles';
+import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import LinearProgress from '@material-ui/core/LinearProgress';
-const useStyles = makeStyles({
- root: {
- flexGrow: 1,
- },
-});
+const useStyles = makeStyles((theme: Theme) =>
+ createStyles({
+ root: {
+ width: '100%',
+ '& > * + *': {
+ marginTop: theme.spacing(2),
+ },
+ },
+ }),
+);
export default function LinearDeterminate() {
const classes = useStyles();
@@ -32,8 +37,7 @@ export default function LinearDeterminate() {
return (
-
-
+
);
}
diff --git a/docs/src/pages/components/progress/LinearIndeterminate.js b/docs/src/pages/components/progress/LinearIndeterminate.js
index 4acd3995aa7e78..c4216e376f28b3 100644
--- a/docs/src/pages/components/progress/LinearIndeterminate.js
+++ b/docs/src/pages/components/progress/LinearIndeterminate.js
@@ -2,11 +2,14 @@ import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import LinearProgress from '@material-ui/core/LinearProgress';
-const useStyles = makeStyles({
+const useStyles = makeStyles(theme => ({
root: {
- flexGrow: 1,
+ width: '100%',
+ '& > * + *': {
+ marginTop: theme.spacing(2),
+ },
},
-});
+}));
export default function LinearIndeterminate() {
const classes = useStyles();
@@ -14,7 +17,6 @@ export default function LinearIndeterminate() {
return (
-
);
diff --git a/docs/src/pages/components/progress/LinearIndeterminate.tsx b/docs/src/pages/components/progress/LinearIndeterminate.tsx
index 4acd3995aa7e78..7ba18e6ed286ba 100644
--- a/docs/src/pages/components/progress/LinearIndeterminate.tsx
+++ b/docs/src/pages/components/progress/LinearIndeterminate.tsx
@@ -1,12 +1,17 @@
import React from 'react';
-import { makeStyles } from '@material-ui/core/styles';
+import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import LinearProgress from '@material-ui/core/LinearProgress';
-const useStyles = makeStyles({
- root: {
- flexGrow: 1,
- },
-});
+const useStyles = makeStyles((theme: Theme) =>
+ createStyles({
+ root: {
+ width: '100%',
+ '& > * + *': {
+ marginTop: theme.spacing(2),
+ },
+ },
+ }),
+);
export default function LinearIndeterminate() {
const classes = useStyles();
@@ -14,7 +19,6 @@ export default function LinearIndeterminate() {
return (
-
);
diff --git a/docs/src/pages/components/progress/LinearQuery.js b/docs/src/pages/components/progress/LinearQuery.js
index 63f779f05d51f7..cbe1c3682b3289 100644
--- a/docs/src/pages/components/progress/LinearQuery.js
+++ b/docs/src/pages/components/progress/LinearQuery.js
@@ -2,11 +2,14 @@ import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import LinearProgress from '@material-ui/core/LinearProgress';
-const useStyles = makeStyles({
+const useStyles = makeStyles(theme => ({
root: {
- flexGrow: 1,
+ width: '100%',
+ '& > * + *': {
+ marginTop: theme.spacing(2),
+ },
},
-});
+}));
export default function LinearQuery() {
const classes = useStyles();
@@ -14,8 +17,7 @@ export default function LinearQuery() {
return (
-
-
+
);
}
diff --git a/docs/src/pages/components/progress/LinearQuery.tsx b/docs/src/pages/components/progress/LinearQuery.tsx
index 63f779f05d51f7..ad7dc127b1cc78 100644
--- a/docs/src/pages/components/progress/LinearQuery.tsx
+++ b/docs/src/pages/components/progress/LinearQuery.tsx
@@ -1,12 +1,17 @@
import React from 'react';
-import { makeStyles } from '@material-ui/core/styles';
+import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import LinearProgress from '@material-ui/core/LinearProgress';
-const useStyles = makeStyles({
- root: {
- flexGrow: 1,
- },
-});
+const useStyles = makeStyles((theme: Theme) =>
+ createStyles({
+ root: {
+ width: '100%',
+ '& > * + *': {
+ marginTop: theme.spacing(2),
+ },
+ },
+ }),
+);
export default function LinearQuery() {
const classes = useStyles();
@@ -14,8 +19,7 @@ export default function LinearQuery() {
return (
-
-
+
);
}
diff --git a/docs/src/pages/components/progress/progress.md b/docs/src/pages/components/progress/progress.md
index 903b7d6217f5b9..0ab13ab58b3395 100644
--- a/docs/src/pages/components/progress/progress.md
+++ b/docs/src/pages/components/progress/progress.md
@@ -86,7 +86,7 @@ function Progress(props) {
Here are some examples of customizing the component. You can learn more about this in the
[overrides documentation page](/customization/components/).
-{{"demo": "pages/components/progress/CustomizedProgressBars.js"}}
+{{"demo": "pages/components/progress/CustomizedProgressBars.js", "defaultCodeOpen": false}}
## Delaying appearance
diff --git a/docs/src/pages/components/rating/HalfRating.js b/docs/src/pages/components/rating/HalfRating.js
index baa03a48add450..0b20c606ead481 100644
--- a/docs/src/pages/components/rating/HalfRating.js
+++ b/docs/src/pages/components/rating/HalfRating.js
@@ -2,9 +2,5 @@ import React from 'react';
import Rating from '@material-ui/lab/Rating';
export default function HalfRating() {
- return (
-
-
-
- );
+ return
;
}
diff --git a/docs/src/pages/components/rating/HalfRating.tsx b/docs/src/pages/components/rating/HalfRating.tsx
index baa03a48add450..0b20c606ead481 100644
--- a/docs/src/pages/components/rating/HalfRating.tsx
+++ b/docs/src/pages/components/rating/HalfRating.tsx
@@ -2,9 +2,5 @@ import React from 'react';
import Rating from '@material-ui/lab/Rating';
export default function HalfRating() {
- return (
-
-
-
- );
+ return
;
}
diff --git a/docs/src/pages/components/skeleton/skeleton.md b/docs/src/pages/components/skeleton/skeleton.md
index 6f6fcfea27a388..837d124e8c3ae2 100644
--- a/docs/src/pages/components/skeleton/skeleton.md
+++ b/docs/src/pages/components/skeleton/skeleton.md
@@ -22,8 +22,8 @@ For instance:
## YouTube example
-{{"demo": "pages/components/skeleton/YouTube.js"}}
+{{"demo": "pages/components/skeleton/YouTube.js", "defaultCodeOpen": false}}
## Facebook example
-{{"demo": "pages/components/skeleton/Facebook.js"}}
+{{"demo": "pages/components/skeleton/Facebook.js", "defaultCodeOpen": false}}
diff --git a/docs/src/pages/components/snackbars/snackbars.md b/docs/src/pages/components/snackbars/snackbars.md
index ddbc6b610d5e25..fe249aa930ffc3 100644
--- a/docs/src/pages/components/snackbars/snackbars.md
+++ b/docs/src/pages/components/snackbars/snackbars.md
@@ -80,7 +80,7 @@ We demonstrate how to use [notistack](https://github.com/iamhosseindhv/notistack
notistack has an **imperative API** that makes it easy to display toasts (so you don't have to deal with open/close state of them).
It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design specification).
-{{"demo": "pages/components/snackbars/IntegrationNotistack.js"}}
+{{"demo": "pages/components/snackbars/IntegrationNotistack.js", "defaultCodeOpen": false}}
## Accessibility
diff --git a/docs/src/pages/components/use-media-query/use-media-query.md b/docs/src/pages/components/use-media-query/use-media-query.md
index 3fedc407946241..f93671fb85e66d 100644
--- a/docs/src/pages/components/use-media-query/use-media-query.md
+++ b/docs/src/pages/components/use-media-query/use-media-query.md
@@ -38,7 +38,7 @@ function MyComponent() {
}
```
-{{"demo": "pages/components/use-media-query/ThemeHelper.js"}}
+{{"demo": "pages/components/use-media-query/ThemeHelper.js", "defaultCodeOpen": false}}
Alternatively, you can use a callback function, accepting the theme as a first argument:
diff --git a/docs/src/pages/system/borders/borders.md b/docs/src/pages/system/borders/borders.md
index 179e3840c81e98..27f3e2a133a23c 100644
--- a/docs/src/pages/system/borders/borders.md
+++ b/docs/src/pages/system/borders/borders.md
@@ -8,6 +8,8 @@ Use border utilities to add or remove an element’s borders. Choose from all bo
### Additive
+{{"demo": "pages/system/borders/BorderAdditive.js", "defaultCodeOpen": false}}
+
```jsx
…
…
@@ -16,10 +18,10 @@ Use border utilities to add or remove an element’s borders. Choose from all bo
…
```
-{{"demo": "pages/system/borders/BorderAdditive.js"}}
-
### Subtractive
+{{"demo": "pages/system/borders/BorderSubtractive.js", "defaultCodeOpen": false}}
+
```jsx
…
…
@@ -28,10 +30,10 @@ Use border utilities to add or remove an element’s borders. Choose from all bo
…
```
-{{"demo": "pages/system/borders/BorderSubtractive.js"}}
-
## Border color
+{{"demo": "pages/system/borders/BorderColor.js", "defaultCodeOpen": false}}
+
```jsx
…
…
@@ -40,18 +42,16 @@ Use border utilities to add or remove an element’s borders. Choose from all bo
…
```
-{{"demo": "pages/system/borders/BorderColor.js"}}
-
## Border-radius
+{{"demo": "pages/system/borders/BorderRadius.js", "defaultCodeOpen": false}}
+
```jsx
…
…
…
```
-{{"demo": "pages/system/borders/BorderRadius.js"}}
-
## API
```js
diff --git a/docs/src/pages/system/display/display.md b/docs/src/pages/system/display/display.md
index a4173807131922..d2e9d20c8efd61 100644
--- a/docs/src/pages/system/display/display.md
+++ b/docs/src/pages/system/display/display.md
@@ -4,20 +4,24 @@
## Examples
+### Inline
+
+{{"demo": "pages/system/display/Inline.js", "defaultCodeOpen": false}}
+
```jsx
inline
inline
```
-{{"demo": "pages/system/display/Inline.js"}}
+### Block
+
+{{"demo": "pages/system/display/Block.js", "defaultCodeOpen": false}}
```jsx
block
block
```
-{{"demo": "pages/system/display/Block.js"}}
-
## Hiding elements
For faster mobile-friendly development, use responsive display classes for showing and hiding elements by device. Avoid creating entirely different versions of the same site, instead hide element responsively for each screen size.
@@ -36,6 +40,7 @@ For faster mobile-friendly development, use responsive display classes for showi
| Visible only on lg | `display={{ xs: 'none', lg: 'block', xl: 'none' }}` |
| Visible only on xl | `display={{ xs: 'none', xl: 'block' }}` |
+{{"demo": "pages/system/display/Hiding.js", "defaultCodeOpen": false}}
```jsx
@@ -46,10 +51,10 @@ For faster mobile-friendly development, use responsive display classes for showi
```
-{{"demo": "pages/system/display/Hiding.js"}}
-
## Display in print
+{{"demo": "pages/system/display/Print.js", "defaultCodeOpen": false}}
+
```jsx
Screen Only (Hide on print only)
@@ -59,10 +64,10 @@ For faster mobile-friendly development, use responsive display classes for showi
```
-{{"demo": "pages/system/display/Print.js"}}
-
## Overflow
+{{"demo": "pages/system/display/Overflow.js", "defaultCodeOpen": false}}
+
```jsx
Overflow Hidden
@@ -72,10 +77,10 @@ For faster mobile-friendly development, use responsive display classes for showi
```
-{{"demo": "pages/system/display/Overflow.js"}}
-
## Text Overflow
+{{"demo": "pages/system/display/TextOverflow.js", "defaultCodeOpen": false}}
+
```jsx
Text Overflow Clip
@@ -85,10 +90,10 @@ For faster mobile-friendly development, use responsive display classes for showi
```
-{{"demo": "pages/system/display/TextOverflow.js"}}
-
## Visibility
+{{"demo": "pages/system/display/Visibility.js", "defaultCodeOpen": false}}
+
```jsx
Visibility Visible
@@ -98,10 +103,10 @@ For faster mobile-friendly development, use responsive display classes for showi
```
-{{"demo": "pages/system/display/Visibility.js"}}
-
## White Space
+{{"demo": "pages/system/display/WhiteSpace.js", "defaultCodeOpen": false}}
+
```jsx
White Space Nowrap
@@ -111,8 +116,6 @@ For faster mobile-friendly development, use responsive display classes for showi
```
-{{"demo": "pages/system/display/WhiteSpace.js"}}
-
## API
```js
diff --git a/docs/src/pages/system/flexbox/flexbox.md b/docs/src/pages/system/flexbox/flexbox.md
index e91c894f56815c..288ca334187c2b 100644
--- a/docs/src/pages/system/flexbox/flexbox.md
+++ b/docs/src/pages/system/flexbox/flexbox.md
@@ -8,101 +8,101 @@ If you are **new to or unfamiliar with flexbox**, we encourage you to read this
### display
+{{"demo": "pages/system/flexbox/Display.js", "defaultCodeOpen": false}}
+
```jsx
…
```
-{{"demo": "pages/system/flexbox/Display.js"}}
-
### flex-direction
+{{"demo": "pages/system/flexbox/FlexDirection.js", "defaultCodeOpen": false}}
+
```jsx
…
…
```
-{{"demo": "pages/system/flexbox/FlexDirection.js"}}
-
### flex-wrap
+{{"demo": "pages/system/flexbox/FlexWrap.js", "defaultCodeOpen": false}}
+
```jsx
…
…
```
-{{"demo": "pages/system/flexbox/FlexWrap.js"}}
-
### justify-content
+{{"demo": "pages/system/flexbox/JustifyContent.js", "defaultCodeOpen": false}}
+
```jsx
…
…
…
```
-{{"demo": "pages/system/flexbox/JustifyContent.js"}}
-
### align-items
+{{"demo": "pages/system/flexbox/AlignItems.js", "defaultCodeOpen": false}}
+
```jsx
…
…
…
```
-{{"demo": "pages/system/flexbox/AlignItems.js"}}
-
### align-content
+{{"demo": "pages/system/flexbox/AlignContent.js", "defaultCodeOpen": false}}
+
```jsx
…
…
```
-{{"demo": "pages/system/flexbox/AlignContent.js"}}
-
## Properties for the Children
### order
+{{"demo": "pages/system/flexbox/Order.js", "defaultCodeOpen": false}}
+
```jsx
Item 1
Item 2
Item 3
```
-{{"demo": "pages/system/flexbox/Order.js"}}
-
### flex-grow
+{{"demo": "pages/system/flexbox/FlexGrow.js", "defaultCodeOpen": false}}
+
```jsx
Item 1
Item 2
Item 3
```
-{{"demo": "pages/system/flexbox/FlexGrow.js"}}
-
### flex-shrink
+{{"demo": "pages/system/flexbox/FlexShrink.js", "defaultCodeOpen": false}}
+
```jsx
Item 1
Item 2
Item 3
```
-{{"demo": "pages/system/flexbox/FlexShrink.js"}}
-
### align-self
+{{"demo": "pages/system/flexbox/AlignSelf.js", "defaultCodeOpen": false}}
+
```jsx
Item 1
Item 2
Item 3
```
-{{"demo": "pages/system/flexbox/AlignSelf.js"}}
-
## API
```js
diff --git a/docs/src/pages/system/palette/palette.md b/docs/src/pages/system/palette/palette.md
index caba98453559c5..056870e6988bf7 100644
--- a/docs/src/pages/system/palette/palette.md
+++ b/docs/src/pages/system/palette/palette.md
@@ -4,6 +4,8 @@
## Color
+{{"demo": "pages/system/palette/Color.js", "defaultCodeOpen": false}}
+
```jsx
…
…
@@ -14,10 +16,10 @@
…
```
-{{"demo": "pages/system/palette/Color.js"}}
-
## Background color
+{{"demo": "pages/system/palette/BackgroundColor.js", "defaultCodeOpen": false}}
+
```jsx
…
…
@@ -28,8 +30,6 @@
…
```
-{{"demo": "pages/system/palette/BackgroundColor.js"}}
-
## API
```js
diff --git a/docs/src/pages/system/positions/positions.md b/docs/src/pages/system/positions/positions.md
index f053acdf00ca7c..02c1afe73463c9 100644
--- a/docs/src/pages/system/positions/positions.md
+++ b/docs/src/pages/system/positions/positions.md
@@ -4,13 +4,13 @@
## z-index
+{{"demo": "pages/system/positions/ZIndex.js", "defaultCodeOpen": false}}
+
```jsx
```
-{{"demo": "pages/system/positions/ZIndex.js"}}
-
## API
```js
diff --git a/docs/src/pages/system/shadows/shadows.md b/docs/src/pages/system/shadows/shadows.md
index 8d4e7ae3195b8b..df15399fb3d09b 100644
--- a/docs/src/pages/system/shadows/shadows.md
+++ b/docs/src/pages/system/shadows/shadows.md
@@ -4,6 +4,8 @@
## Example
+{{"demo": "pages/system/shadows/Demo.js", "defaultCodeOpen": false}}
+
```jsx
…
…
@@ -11,8 +13,6 @@
…
```
-{{"demo": "pages/system/shadows/Demo.js"}}
-
## API
```js
diff --git a/docs/src/pages/system/sizing/sizing.md b/docs/src/pages/system/sizing/sizing.md
index 1716ee0b3c9d9b..1573143f940b25 100644
--- a/docs/src/pages/system/sizing/sizing.md
+++ b/docs/src/pages/system/sizing/sizing.md
@@ -6,6 +6,8 @@
The sizing style functions support different property input type:
+{{"demo": "pages/system/sizing/Values.js", "defaultCodeOpen": false}}
+
```jsx
// Numbers in [0,1] are multiplied by 100 and converted to % values.
// Numbers are converted to pixel values.
@@ -13,10 +15,10 @@ The sizing style functions support different property input type:
// 100%
```
-{{"demo": "pages/system/sizing/Values.js"}}
-
## Width
+{{"demo": "pages/system/sizing/Width.js", "defaultCodeOpen": false}}
+
```jsx
…
…
@@ -25,10 +27,10 @@ The sizing style functions support different property input type:
…
```
-{{"demo": "pages/system/sizing/Width.js"}}
-
## Height
+{{"demo": "pages/system/sizing/Height.js", "defaultCodeOpen": false}}
+
```jsx
…
…
@@ -36,8 +38,6 @@ The sizing style functions support different property input type:
…
```
-{{"demo": "pages/system/sizing/Height.js"}}
-
## API
```js
diff --git a/docs/src/pages/system/spacing/spacing.md b/docs/src/pages/system/spacing/spacing.md
index ea7b033151f3c2..36d783a661bab9 100644
--- a/docs/src/pages/system/spacing/spacing.md
+++ b/docs/src/pages/system/spacing/spacing.md
@@ -70,22 +70,22 @@ const theme = {
## Example
+{{"demo": "pages/system/spacing/Demo.js", "defaultCodeOpen": false}}
+
```jsx
…
…
…
```
-{{"demo": "pages/system/spacing/Demo.js"}}
-
## Horizontal centering
+{{"demo": "pages/system/spacing/HorizontalCentering.js", "defaultCodeOpen": false}}
+
```jsx
…
```
-{{"demo": "pages/system/spacing/HorizontalCentering.js"}}
-
## API
```js
diff --git a/docs/src/pages/system/typography/typography.md b/docs/src/pages/system/typography/typography.md
index fa9202747be56d..177d9797755932 100644
--- a/docs/src/pages/system/typography/typography.md
+++ b/docs/src/pages/system/typography/typography.md
@@ -4,16 +4,18 @@
## Text alignment
+{{"demo": "pages/system/typography/TextAlignment.js", "defaultCodeOpen": false}}
+
```jsx
…
…
…
```
-{{"demo": "pages/system/typography/TextAlignment.js"}}
-
## Font weight
+{{"demo": "pages/system/typography/FontWeight.js", "defaultCodeOpen": false}}
+
```jsx
…
…
@@ -22,55 +24,53 @@
…
```
-{{"demo": "pages/system/typography/FontWeight.js"}}
-
## Font size
+{{"demo": "pages/system/typography/FontSize.js", "defaultCodeOpen": false}}
+
```jsx
…
…
…
```
-{{"demo": "pages/system/typography/FontSize.js"}}
-
## Font Style
+{{"demo": "pages/system/typography/FontStyle.js", "defaultCodeOpen": false}}
+
```jsx
…
…
…
```
-{{"demo": "pages/system/typography/FontStyle.js"}}
-
## Font family
+{{"demo": "pages/system/typography/FontFamily.js", "defaultCodeOpen": false}}
+
```jsx
…
…
```
-{{"demo": "pages/system/typography/FontFamily.js"}}
-
## Letter Spacing
+{{"demo": "pages/system/typography/LetterSpacing.js", "defaultCodeOpen": false}}
+
```jsx
…
…
```
-{{"demo": "pages/system/typography/LetterSpacing.js"}}
-
## Line Height
+{{"demo": "pages/system/typography/LineHeight.js", "defaultCodeOpen": false}}
+
```jsx
…
…
```
-{{"demo": "pages/system/typography/LineHeight.js"}}
-
## API
```js
diff --git a/docs/translations/translations.json b/docs/translations/translations.json
index d27764d1b69198..d92bc76a07992e 100644
--- a/docs/translations/translations.json
+++ b/docs/translations/translations.json
@@ -57,6 +57,8 @@
"expandAll": "Expand all",
"showSource": "Show the source",
"hideSource": "Hide the source",
+ "showFullSource": "Show the full source",
+ "hideFullSource": "Hide the full source",
"viewGitHub": "View the source on GitHub",
"codesandbox": "Edit in CodeSandbox",
"seeMore": "See more",