1. Component Guide
  2. Image card
  3. With a different heading level
Image card example

With a different heading level

Use a different heading level for the main link title. Defaults to H2 if not passed.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/image_card", {
  href: "/really-not-a-page",
  image_src: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/feature/image/62756/s300_courts-of-justice.JPG",
  image_alt: "some meaningful alt text please",
  heading_text: "I am a heading level 3",
  heading_level: 3
} %>