forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more content and structure revisions
- Loading branch information
1 parent
feae2bf
commit 09fe577
Showing
7 changed files
with
142 additions
and
23 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,33 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import Paper from '@mui/material/Paper'; | ||
import { styled } from '@mui/material/styles'; | ||
|
||
const DemoPaper = styled(Paper)(({ theme }) => ({ | ||
...theme.typography.body2, | ||
textAlign: 'center', | ||
color: theme.palette.text.secondary, | ||
paddingTop: 20, | ||
})); | ||
|
||
export default function SquareCorners() { | ||
return ( | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
'& > :not(style)': { | ||
m: 1, | ||
width: 128, | ||
height: 128, | ||
}, | ||
}} | ||
> | ||
<DemoPaper square={false}> | ||
{' '} | ||
{/* this is the default value */} | ||
rounded corners | ||
</DemoPaper> | ||
<DemoPaper square>square corners</DemoPaper> | ||
</Box> | ||
); | ||
} |
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,33 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import Paper from '@mui/material/Paper'; | ||
import { styled } from '@mui/material/styles'; | ||
|
||
const DemoPaper = styled(Paper)(({ theme }) => ({ | ||
...theme.typography.body2, | ||
textAlign: 'center', | ||
color: theme.palette.text.secondary, | ||
paddingTop: 20, | ||
})); | ||
|
||
export default function SquareCorners() { | ||
return ( | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
'& > :not(style)': { | ||
m: 1, | ||
width: 128, | ||
height: 128, | ||
}, | ||
}} | ||
> | ||
<DemoPaper square={false}> | ||
{' '} | ||
{/* this is the default value */} | ||
rounded corners | ||
</DemoPaper> | ||
<DemoPaper square>square corners</DemoPaper> | ||
</Box> | ||
); | ||
} |
6 changes: 6 additions & 0 deletions
6
docs/data/material/components/paper/SquareCorners.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,6 @@ | ||
<DemoPaper square={false}> {/* this is the default value */} | ||
rounded corners | ||
</DemoPaper> | ||
<DemoPaper square> | ||
square corners | ||
</DemoPaper> |
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 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 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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
<Paper variant="outlined" /> | ||
<Paper variant="outlined" square /> | ||
<DemoPaper variant="elevation"> {/* this is the default value */} | ||
default variant | ||
</DemoPaper> | ||
<DemoPaper variant="outlined"> | ||
outlined variant | ||
</DemoPaper> |
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