Card

Overview

Cards contain content and actions that relate information about a subject. A card is identifiable as a single, contained unit and can hold anything from images to headlines, supporting text, buttons, lists, and other components.

Example

Properties

PropertyDescriptionTypeValuesDefaultRequired
titleThe title of the cardstring
buttonLabelThe text used for the buttonstring
toWhere the card should link tostring
additionalLinkTextThe text used for the additional linkstring
additionalLinkAdd an additional link to the complex cardstring
variantThe variant of the cardstringsimple | basic | basic-button-middle | decorative | decorative-icon | complexsimple
imageThe image of the cardstring
loadingToggle lazy loading of the imagesstringlazy | eagerlazy
contentThe content of the cardstring
altThe alt text of the imagestring""
dateAdd a date to the cardDate
containContain the image to the content size for complex cardsbooleanfalse

Slots

NameDescription
iconThe icon to display in the card.