---
url: /en/guide/components/image-card/index.md
---
## Overview

Use the `<ImageCard>` component to display image cards on a page.

The Image Card differs from markdown's standard image insertion method by presenting more information
related to the image, including title, description, author, link, etc.
It is suitable for scenarios such as photography works, design works, promotional posters, and more.

## Props

:::: field-group

::: field image
@type `string`
@required

The image URL. Local images must use an absolute path, i.e., a path starting with `/`, pointing to the `/public` directory.
:::

::: field title
@type `string`

The image title.
:::

::: field description
@type `string`

The image description.
:::

::: field author
@type `string`

The image author.
:::

::: field href
@type `string`

The link to navigate to when the image title is clicked.
:::

::: field date
@type `string | Date | number`

The image creation date.
:::

::: field width
@type `string | number`

The image width.
:::

::: field center
@type `boolean`

Whether to center the image when its width is less than the screen width.
:::

::::

## Slots

**This component provides no slots.** All content is passed through props (`image`, `title`, `author`,
`date`, `description`, `href`).

If you need custom content inside an image card, use [`Card`](./v-card.md) or
[`LinkCard`](./v-link-card.md) and build it inside their slots.

## Examples

**Input:**

```md :no-line-numbers
<ImageCard
  image="https://cn.bing.com/th?id=OHR.AlfanzinaLighthouse_ZH-CN9704515669_1920x1080.webp"
  title="Alfanzina Lighthouse, Algarve, Portugal"
  description="The lighthouse in today's photo is located at Cabo de São Vicente in the Algarve region of southern Portugal. The Alfanzina Lighthouse, built in 1919, shines over the sea, helping vessels navigate the treacherous waters around the area. This lighthouse is a famous tourist attraction and also a symbol of the region's deep connection with the ocean. If you're fortunate enough to live near the lighthouse, this weekend is the perfect time to visit."
  href="/"
  author="Andreas Kunz"
  date="2024/08/16"
/>
```

**Output:**

It can also be placed within a `<CardGrid>` component.

**Input:**

```md :no-line-numbers
<CardGrid>
  <ImageCard
    image="https://cn.bing.com/th?id=OHR.AlfanzinaLighthouse_ZH-CN9704515669_1920x1080.webp"
    title="Alfanzina Lighthouse, Algarve, Portugal"
    description="..."
    href="/"
    author="Andreas Kunz"
    date="2024/08/16"
  />
  <ImageCard
    image="https://cn.bing.com/th?id=OHR.AlfanzinaLighthouse_ZH-CN9704515669_1920x1080.webp"
    title="Alfanzina Lighthouse, Algarve, Portugal"
    description="..."
    href="/"
    author="Andreas Kunz"
    date="2024/08/16"
  />
</CardGrid>
```

**Output:**

[View Photography Works Example](/en/demos/)
