forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Revise Joy UI "Typography" page (mui#35868)
Co-authored-by: Sam Sycamore <[email protected]>
- Loading branch information
1 parent
bf42a54
commit d3cdc89
Showing
13 changed files
with
125 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as React from 'react'; | ||
import Card from '@mui/joy/Card'; | ||
import Typography from '@mui/joy/Typography'; | ||
|
||
export default function TypographyBasics() { | ||
return ( | ||
<Card variant="outlined" sx={{ maxWidth: 400 }}> | ||
<Typography level="h1">National Parks</Typography> | ||
<Typography level="h2" fontSize="xl" sx={{ mb: 0.5 }}> | ||
Yosemite National Park | ||
</Typography> | ||
<Typography level="body1"> | ||
Yosemite National Park is a national park spanning 747,956 acres (1,169.4 sq | ||
mi; 3,025.2 km2) in the western Sierra Nevada of Central California. | ||
</Typography> | ||
</Card> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as React from 'react'; | ||
import Card from '@mui/joy/Card'; | ||
import Typography from '@mui/joy/Typography'; | ||
|
||
export default function TypographyBasics() { | ||
return ( | ||
<Card variant="outlined" sx={{ maxWidth: 400 }}> | ||
<Typography level="h1">National Parks</Typography> | ||
<Typography level="h2" fontSize="xl" sx={{ mb: 0.5 }}> | ||
Yosemite National Park | ||
</Typography> | ||
<Typography level="body1"> | ||
Yosemite National Park is a national park spanning 747,956 acres (1,169.4 sq | ||
mi; 3,025.2 km2) in the western Sierra Nevada of Central California. | ||
</Typography> | ||
</Card> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
docs/data/joy/components/typography/TypographyBasics.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Card variant="outlined" sx={{ maxWidth: 400 }}> | ||
<Typography level="h1">National Parks</Typography> | ||
<Typography level="h2" fontSize="xl" sx={{ mb: 0.5 }}> | ||
Yosemite National Park | ||
</Typography> | ||
<Typography level="body1"> | ||
Yosemite National Park is a national park spanning 747,956 acres (1,169.4 sq | ||
mi; 3,025.2 km2) in the western Sierra Nevada of Central California. | ||
</Typography> | ||
</Card> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
examples/gatsby/plugins/gatsby-plugin-mui-emotion/gatsby-browser.js
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
examples/gatsby/plugins/gatsby-plugin-mui-emotion/gatsby-ssr.js
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
examples/gatsby/plugins/gatsby-plugin-mui-emotion/getEmotionCache.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
examples/gatsby/plugins/gatsby-plugin-mui-emotion/package.json
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
examples/gatsby/plugins/gatsby-plugin-top-layout/TopLayout.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.