Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
import Box from '@mui/joy/Box';
|
|
import Card from '@mui/joy/Card';
|
|
import CardContent from '@mui/joy/CardContent';
|
|
import Typography from '@mui/joy/Typography';
|
|
|
|
export default function CardVariants() {
|
|
return (
|
|
<Box
|
|
sx={{
|
|
width: '100%',
|
|
maxWidth: 500,
|
|
display: 'grid',
|
|
gridTemplateColumns: 'repeat(auto-fill, minmax(240px, 1fr))',
|
|
gap: 2,
|
|
}}
|
|
>
|
|
<Card variant="plain">
|
|
<CardContent>
|
|
<Typography level="title-md">Plain card</Typography>
|
|
<Typography>Description of the card.</Typography>
|
|
</CardContent>
|
|
</Card>
|
|
|
|
<Card variant="outlined">
|
|
<CardContent>
|
|
<Typography level="title-md">Outlined card (default)</Typography>
|
|
<Typography>Description of the card.</Typography>
|
|
</CardContent>
|
|
</Card>
|
|
|
|
<Card variant="soft">
|
|
<CardContent>
|
|
<Typography level="title-md">Soft card</Typography>
|
|
<Typography>Description of the card.</Typography>
|
|
</CardContent>
|
|
</Card>
|
|
|
|
<Card variant="solid">
|
|
<CardContent>
|
|
<Typography level="title-md" textColor="inherit">
|
|
Solid card
|
|
</Typography>
|
|
<Typography textColor="inherit">Description of the card.</Typography>
|
|
</CardContent>
|
|
</Card>
|
|
</Box>
|
|
);
|
|
}
|