<Card>
ComponentA component used to promote and link to marketing pages, always using a descriptive heading but optionally other elements as needed.
<><div style={{display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '32px'}}><Cardlink="https://hashicorp.com"thumbnail={{src: "https://www.datocms-assets.com/19447/1648680074-screenshot-2022-03-31-at-00-40-47.png",alt: "HashiConf Europe 2022 Recap"}}meta={['August 15, 2022','Category']}heading="Display 5 - 4 lines with character limit of 130. Leo mauris fermentum pharetra blandit tellus euismod…"description="Body small - 4 lines with character limit of 170. Leo mauris fermentum pharetra blandit tellus euismod pharetra. Duis egestas volutpat dolor…"/><Cardappearance="dark"link="https://hashicorp.com"thumbnail={{src: "https://www.datocms-assets.com/19447/1648680074-screenshot-2022-03-31-at-00-40-47.png",alt: "HashiConf Europe 2022 Recap"}}meta={['August 15, 2022','Category']}heading="Display 5 - 4 lines with character limit of 130. Leo mauris fermentum pharetra blandit tellus euismod…"description="Body small - 4 lines with character limit of 170. Leo mauris fermentum pharetra blandit tellus euismod pharetra. Duis egestas volutpat dolor…"/><Cardlink="https://hashicorp.com"heading="Display 5 - 4 lines with character limit of 130. Leo mauris fermentum pharetra blandit tellus euismod…"/></div></>
Light theme
Dark theme
Use Case Cards with Product Badges
Card variants
Name | Description |
---|---|
withArrow boolean | Allows the arrow at the bottom of the card to render. Defaults to true . |
thumbnail object | An image showcasing the card's destination. Object contains nested props, see below: |
thumbnail.src* string | URL for the image |
thumbnail.alt string | Alternative text for the image |
meta array | Content shown above the card heading. |
appearance string | Styles the card with either a light or dark theme. |
heading string | A bold headline describing the card's destination. |
productBadges object | A list of ProductBadges. Object contains nested props, see below: |
productBadges.appearance string | Styles the ProductBadges with either a light or dark theme. |
productBadges.badges array | A list of ProductBadges. See props for the ProductBadges component here |
description string | Text describing the card's destination. |
link* string | A link followed when the card is clicked. |