Card

<Card> renders an anchored figure with an image, title, and optional subtitle. Use it when you need a lightweight teaser that links directly to a work page or supporting essay.

The town and pass of Boondi, in Rajpootana
The town & pass of Boondi
<Card  href="/works/the-town-and-pass-of-boondi-in-rajpootana.html"  src="https://api.dc.library.northwestern.edu/api/v2/works/4bdb5a22-6c7f-498d-8e6e-e49ea9bc4778/thumbnail"  alt="The town and pass of Boondi, in Rajpootana"  title="The town & pass of Boondi"/>

Props

PropTypeRequiredNotes
hrefstringDestination URL for the figure link.
titlestringPrimary caption text shown under the image.
subtitlestringOptional secondary line for composer, date, or summary.
srcstringImage URL (IIIF thumbnail, static JPG, or custom media).
altstringAccessible alt text; defaults to title if omitted.
imgWidth / imgHeightnumberProvide intrinsic size to keep ratios steady without CSS.
aspectRationumberAlternative to width/height when you know the ratio.
lazybooleanLazily load the image (default true). Disable inside sliders.
classNamestringExtra utility classes for custom layouts.

Examples

Summary line

Add a subtitle when you want a brief line of context under the main title.

The town & pass of Boondi
The town & pass of BoondiLieutenant-Colonel Thomas Bacon, 1836
<Card  href="/works/the-town-and-pass-of-boondi-in-rajpootana.html"  src="https://api.dc.library.northwestern.edu/api/v2/works/4bdb5a22-6c7f-498d-8e6e-e49ea9bc4778/thumbnail"  title="The town & pass of Boondi"  subtitle="Lieutenant-Colonel Thomas Bacon, 1836"/>

Fixed ratio

Lock the image ratio with imgWidth and imgHeight so cards line up even when thumbnails vary.

Prayer mat from the Panjab
Prayer mat from the PanjabEmbroidered silk, ca. 1870
<Card  href="/works/prayer-mat-from-the-panjab.html"  src="https://api.dc.library.northwestern.edu/api/v2/works/c26591b2-994b-4ba3-a87e-9124419fa91b/thumbnail"  title="Prayer mat from the Panjab"  subtitle="Embroidered silk, ca. 1870"  imgWidth={1024}  imgHeight={1536}/>

Controlled loading

Disable lazy loading when the card sits inside an already lazy container such as <Slider />.

Street Scene in Lucknow
Street Scene in LucknowGustav Leitner, 1860
<Card  href="/works/street-scene-in-lucknow.html"  src="https://api.dc.library.northwestern.edu/api/v2/works/d4c62d7f-f50d-4b29-85e0-5d380675bec7/thumbnail"  title="Street Scene in Lucknow"  subtitle="Gustav Leitner, 1860"  lazy={false}/>