Files
react-test/docs/data/joy/components/card/InteractiveCard.js
how2ice 005cf56baf
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
init project
2025-12-12 14:26:25 +09:00

56 lines
1.5 KiB
JavaScript

import AspectRatio from '@mui/joy/AspectRatio';
import Link from '@mui/joy/Link';
import Card from '@mui/joy/Card';
import CardContent from '@mui/joy/CardContent';
import Chip from '@mui/joy/Chip';
import Typography from '@mui/joy/Typography';
export default function InteractiveCard() {
return (
<Card
variant="outlined"
orientation="horizontal"
sx={{
width: 320,
'&:hover': { boxShadow: 'md', borderColor: 'neutral.outlinedHoverBorder' },
}}
>
<AspectRatio ratio="1" sx={{ width: 90 }}>
<img
src="https://images.unsplash.com/photo-1507833423370-a126b89d394b?auto=format&fit=crop&w=90"
srcSet="https://images.unsplash.com/photo-1507833423370-a126b89d394b?auto=format&fit=crop&w=90&dpr=2 2x"
loading="lazy"
alt=""
/>
</AspectRatio>
<CardContent>
<Typography level="title-lg" id="card-description">
Yosemite Park
</Typography>
<Typography
level="body-sm"
aria-describedby="card-description"
sx={{ mb: 1 }}
>
<Link
overlay
underline="none"
href="#interactive-card"
sx={{ color: 'text.tertiary' }}
>
California, USA
</Link>
</Typography>
<Chip
variant="outlined"
color="primary"
size="sm"
sx={{ pointerEvents: 'none' }}
>
Cool weather all day long
</Chip>
</CardContent>
</Card>
);
}