Skip to main content

molecules

Award card

A card for a single award that maps an award record's card data onto the shared card component.

Specimens

Award as a card
livehopelove_7.jpg

Webby Award

Winner in the eLearning category.

{{ Award.render({
  title: "Webby Award",
  description: "Winner in the eLearning category.",
  url: "/work/",
  image: (collections.projectPages | filterByKey("slug", "live-hope-love") | first).featuredImage
}) }}

Params

ParamTypeDescription
awardobjectAward record. Its card object supplies fallback values.
cardobjectFallback record, used when award.card is absent.
titlestringDefaults to card.title, then “Untitled award”.
imageSanity image or stringDefaults to card.image.
urlstringDefaults to card.url.
descriptionstringDefaults to card.description.
metaarrayDefaults to card.meta.
classesstring, variant map, or arrayPassed to the card.
stylesobjectPassed to the card. See the slot table.
SlotElement
imageThe card’s media element (<img> or <video>).

Notes

Award records in the CMS carry no card data yet, so callers pass the fields directly.