Card
The Card component is a layout component used to group content in a visually consistent block. The component includes an image, a title, and a short description.
Fields
-
title(required) - Title displayed below the image. -
description(required) - Short text description shown below the title. -
imageChooser(default:image) - A switchable field allowing internal or external image selection:-
If
imageis selected:-
image(required) - Chooser for selecting an image from Magnolia DAM. -
altText(optional) - Alt text for accessibility.
-
-
If
externalImageis selected:-
externalImage(required) - A full URL to the external image. -
externalImageAlt(optional) - Alt text for accessibility.
-
-
Behavior
-
Displays a vertically stacked card layout.
-
All content is wrapped in a padded container.
-
Image spans the full width of the card.
-
Title appears below the image, followed by the description.
-
Width of the card adapts to the parent container.