-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Typography] Added position only when Skeleton is a direct child (#38799
- Loading branch information
1 parent
04b4d98
commit 846bc16
Showing
3 changed files
with
37 additions
and
2 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
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,26 @@ | ||
import * as React from 'react'; | ||
import Avatar from '@mui/joy/Avatar'; | ||
import Box from '@mui/joy/Box'; | ||
import Card from '@mui/joy/Card'; | ||
import Link, { linkClasses } from '@mui/joy/Link'; | ||
import Typography from '@mui/joy/Typography'; | ||
|
||
export default function LinkCard() { | ||
return ( | ||
<Box sx={{ p: 2 }}> | ||
<Card variant="outlined" sx={{ display: 'flex', gap: 2 }}> | ||
<Avatar size="lg" src="/static/images/avatar/1.jpg" /> | ||
<Link | ||
overlay | ||
href="#introduction" | ||
underline="none" | ||
className={linkClasses.focusVisible} | ||
sx={{ display: 'flex', flexDirection: 'column', alignItems: 'start' }} | ||
> | ||
<Typography level="body-md">Joy UI</Typography> | ||
<Typography level="body-sm">Components that spark joy!</Typography> | ||
</Link> | ||
</Card> | ||
</Box> | ||
); | ||
} |