With actions
How it looks (preview)
How to call this example
<%= render "components/image_with_metadata", {
src: "https://assets.publishing.service.gov.uk/government/assets/history/buildings/larry-the-cat-a47549e08bdbc6cd0e3e042eea943f65b7a4590d95642586e51acb44bb2dcea2.jpg",
alt_text: "Larry the cat",
actions: [
sanitize("<a class=\"govuk-link\" href=\"#\">Edit image</a>"),
sanitize("<a class=\"govuk-link\" href=\"#\">Delete image</a>")
]
} %>