Skip to content

Commit

Permalink
[docs] Add docs for typography in system (#23510)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Nov 16, 2020
1 parent 2ee845a commit ad42757
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/src/pages/system/typography/Variant.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as React from 'react';
import Box from '@material-ui/core/Box';

export default function Variant() {
return (
<div>
<Box sx={{ typography: 'subtitle2' }}>subtitle2</Box>
<Box sx={{ typography: 'body1' }}>body1</Box>
<Box sx={{ typography: 'body2' }}>body2</Box>
</div>
);
}
12 changes: 12 additions & 0 deletions docs/src/pages/system/typography/Variant.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as React from 'react';
import Box from '@material-ui/core/Box';

export default function Variant() {
return (
<div>
<Box sx={{ typography: 'subtitle2' }}>subtitle2</Box>
<Box sx={{ typography: 'body1' }}>body1</Box>
<Box sx={{ typography: 'body2' }}>body2</Box>
</div>
);
}
4 changes: 4 additions & 0 deletions docs/src/pages/system/typography/typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

<p class="description">Documentation and examples for common text utilities to control alignment, wrapping, weight, and more.</p>

## Variant

{{"demo": "pages/system/typography/Variant.js"}}

## Text alignment

{{"demo": "pages/system/typography/TextAlignment.js", "defaultCodeOpen": false}}
Expand Down

0 comments on commit ad42757

Please sign in to comment.