Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
226 additions
and
9 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,73 @@ | ||
import Box from '@mui/joy/Box'; | ||
import Radio from '@mui/joy/Radio'; | ||
import RadioGroup from '@mui/joy/RadioGroup'; | ||
import Sheet, { sheetClasses } from '@mui/joy/Sheet'; | ||
|
||
import Typography from '@mui/joy/Typography'; | ||
import * as React from 'react'; | ||
|
||
export default function SheetColors() { | ||
const [variant, setVariant] = React.useState('plain'); | ||
return ( | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
gap: 2, | ||
justifyContent: 'center', | ||
flexWrap: 'wrap', | ||
[`& > .${sheetClasses.root}`]: { | ||
m: 2, | ||
width: 128, | ||
height: 128, | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
mb: 2, | ||
width: '100%', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<Typography fontWeight="lg" mr={2} id="variant-label"> | ||
Variant: | ||
</Typography> | ||
<RadioGroup | ||
aria-labelledby="variant-label" | ||
name="variant" | ||
row | ||
value={variant} | ||
onChange={(event) => setVariant(event.target.value)} | ||
> | ||
<Radio label="Plain" value="plain" /> | ||
<Radio label="Outlined" value="outlined" /> | ||
<Radio label="Soft" value="soft" /> | ||
<Radio label="Solid" value="solid" /> | ||
</RadioGroup> | ||
</Box> | ||
<Sheet variant={variant} color="primary"> | ||
Primary | ||
</Sheet> | ||
<Sheet variant={variant} color="neutral"> | ||
Neutral | ||
</Sheet> | ||
<Sheet variant={variant} color="danger"> | ||
Danger | ||
</Sheet> | ||
<Sheet variant={variant} color="info"> | ||
Info | ||
</Sheet> | ||
<Sheet variant={variant} color="success"> | ||
Success | ||
</Sheet> | ||
<Sheet variant={variant} color="warning"> | ||
Warning | ||
</Sheet> | ||
</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,73 @@ | ||
import Box from '@mui/joy/Box'; | ||
import Radio from '@mui/joy/Radio'; | ||
import RadioGroup from '@mui/joy/RadioGroup'; | ||
import Sheet, { sheetClasses } from '@mui/joy/Sheet'; | ||
import { VariantProp } from '@mui/joy/styles'; | ||
import Typography from '@mui/joy/Typography'; | ||
import * as React from 'react'; | ||
|
||
export default function SheetColors() { | ||
const [variant, setVariant] = React.useState<VariantProp>('plain'); | ||
return ( | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
gap: 2, | ||
justifyContent: 'center', | ||
flexWrap: 'wrap', | ||
[`& > .${sheetClasses.root}`]: { | ||
m: 2, | ||
width: 128, | ||
height: 128, | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
mb: 2, | ||
width: '100%', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<Typography fontWeight="lg" mr={2} id="variant-label"> | ||
Variant: | ||
</Typography> | ||
<RadioGroup | ||
aria-labelledby="variant-label" | ||
name="variant" | ||
row | ||
value={variant} | ||
onChange={(event) => setVariant(event.target.value as VariantProp)} | ||
> | ||
<Radio label="Plain" value="plain" /> | ||
<Radio label="Outlined" value="outlined" /> | ||
<Radio label="Soft" value="soft" /> | ||
<Radio label="Solid" value="solid" /> | ||
</RadioGroup> | ||
</Box> | ||
<Sheet variant={variant} color="primary"> | ||
Primary | ||
</Sheet> | ||
<Sheet variant={variant} color="neutral"> | ||
Neutral | ||
</Sheet> | ||
<Sheet variant={variant} color="danger"> | ||
Danger | ||
</Sheet> | ||
<Sheet variant={variant} color="info"> | ||
Info | ||
</Sheet> | ||
<Sheet variant={variant} color="success"> | ||
Success | ||
</Sheet> | ||
<Sheet variant={variant} color="warning"> | ||
Warning | ||
</Sheet> | ||
</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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Sheet elevation="sm" /> | ||
<Sheet elevation="md" /> | ||
<Sheet elevation="lg" /> |
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,28 @@ | ||
import Box from '@mui/joy/Box'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import * as React from 'react'; | ||
|
||
export default function SheetElevations() { | ||
return ( | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
flexWrap: 'wrap', | ||
justifyContent: 'center', | ||
'& > div': { | ||
m: 2, | ||
width: 128, | ||
height: 128, | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}} | ||
> | ||
<Sheet variant="plain">Plain</Sheet> | ||
<Sheet variant="solid">Solid</Sheet> | ||
<Sheet variant="outlined">Outlined</Sheet> | ||
<Sheet variant="soft">Soft</Sheet> | ||
</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,28 @@ | ||
import Box from '@mui/joy/Box'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import * as React from 'react'; | ||
|
||
export default function SheetElevations() { | ||
return ( | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
flexWrap: 'wrap', | ||
justifyContent: 'center', | ||
'& > div': { | ||
m: 2, | ||
width: 128, | ||
height: 128, | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}} | ||
> | ||
<Sheet variant="plain">Plain</Sheet> | ||
<Sheet variant="solid">Solid</Sheet> | ||
<Sheet variant="outlined">Outlined</Sheet> | ||
<Sheet variant="soft">Soft</Sheet> | ||
</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,4 @@ | ||
<Sheet variant="plain">Plain</Sheet> | ||
<Sheet variant="solid">Solid</Sheet> | ||
<Sheet variant="outlined">Outlined</Sheet> | ||
<Sheet variant="soft">Soft</Sheet> |
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