Skip to content

Commit

Permalink
edit demos
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Jun 16, 2022
1 parent 85935bf commit 543bdb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
6 changes: 5 additions & 1 deletion docs/data/joy/components/sheet/SimpleSheet.js
Expand Up @@ -2,5 +2,9 @@ import Sheet from '@mui/joy/Sheet';
import * as React from 'react';

export default function SimpleSheet() {
return <Sheet variant="outlined">Hello world!</Sheet>;
return (
<Sheet variant="outlined" sx={{ p: 4 }}>
Hello world!
</Sheet>
);
}
19 changes: 3 additions & 16 deletions docs/data/joy/components/sheet/SimpleSheet.tsx
@@ -1,23 +1,10 @@
import Box from '@mui/joy/Box';
import Sheet from '@mui/joy/Sheet';
import * as React from 'react';

export default function SimpleSheet() {
return (
<Box
sx={{
display: 'flex',
flexWrap: 'wrap',
'& > div': {
m: 2,
width: 128,
height: 128,
},
}}
>
<Sheet elevation="sm" />
<Sheet elevation="md" />
<Sheet elevation="lg" />
</Box>
<Sheet variant="outlined" sx={{ p: 4 }}>
Hello world!
</Sheet>
);
}

0 comments on commit 543bdb3

Please sign in to comment.