Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions docs/data/material/components/cards/DeveloperProfileCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import * as React from 'react';
import Avatar from '@mui/material/Avatar';
import Button from '@mui/material/Button';
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
import Chip from '@mui/material/Chip';
import Stack from '@mui/material/Stack';
import Typography from '@mui/material/Typography';

export default function DeveloperProfileCard() {
return (
<Card sx={{ maxWidth: 345 }}>
<CardContent>
<Stack spacing={2} alignItems="center">
<Avatar sx={{ width: 72, height: 72 }}>
D
</Avatar>

<Typography variant="h6">
Developer Profile
</Typography>

<Typography variant="body2" color="text.secondary">
Full-stack developer passionate about building modern web applications.
</Typography>

<Stack direction="row" spacing={1}>
<Chip label="React" />
<Chip label="TypeScript" />
<Chip label="MUI" />
</Stack>

<Button variant="contained">
View Profile
</Button>
</Stack>
</CardContent>
</Card>
);
}
7 changes: 7 additions & 0 deletions docs/data/material/components/cards/cards.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,10 @@ To customize a Card's styles when it's in an active state, you can attach a `dat
{{"demo": "SelectActionCard.js", "bg": true}}

🎨 If you are looking for inspiration, you can check [MUI Treasury's customization examples](https://mui-treasury.com/primitive/card).


## Profile card

Example of building a user profile card by combining multiple Material UI components.

{{"demo": "ProfileCard.js", "bg": true}}
Loading