# With image

> Top media banner above title, body, and a CTA footer.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/card-02).

- Page, with a live preview: https://shadcn.exchange/r/flx/card-02
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/card-02-light-298ed6331b5abb67.png
- Registry item: https://ui.flexnative.com/r/card-02.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/card-02.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `card`, `button`

## Files

### `registry/patterns/card/card-02.tsx`

```tsx
import { MapPinIcon, StarIcon } from 'lucide-react'

import { Button } from '@/components/ui/button'
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from '@/components/ui/card'

export function Card02() {
  return (
    <Card className="w-full max-w-sm">
      <img
        src="https://images.unsplash.com/photo-1505765050516-f72dcac9c60e?auto=format&fit=crop&w=640&q=80"
        alt="Forested valley at golden hour"
        className="aspect-video object-cover"
      />
      <CardHeader>
        <CardTitle>Mountain retreat</CardTitle>
        <CardDescription className="flex items-center gap-1">
          <MapPinIcon className="size-3.5" />
          Aspen, Colorado
        </CardDescription>
      </CardHeader>
      <CardContent className="text-muted-foreground">
        A secluded cabin with floor-to-ceiling windows, a wood stove, and trail
        access from the back porch.
      </CardContent>
      <CardFooter className="justify-between">
        <span className="flex items-center gap-1 text-sm font-medium">
          <StarIcon className="size-4 fill-amber-400 text-amber-400" />
          4.9
        </span>
        <Button>Book now</Button>
      </CardFooter>
    </Card>
  )
}
```
