Card Groups

The Card Groups component (be-card-groups) is a container that organizes multiple Card (be-Card) child components in a responsive layout. It exposes an inner placeholder where individual Card renderings are dropped, and those cards automatically render in a flexible row/column arrangement controlled by Bootstrap grid utilities on each card’s rendering parameters.

Each Card uses the Beryllium datasource template (providing Title, Copy, Image, and Link fields) and supports four display variants via the CardType parameter: image (default with top image), horizontal (side-by-side image and body), bordered (no image, border-only styling), and overlayed (text overlaying the image). Cards also support stretched links, configurable heading levels, link/button styles, and border/text colour overrides.

Examples

Live Example

Below is a live be-card-groups rendering containing three be-Card child components using the default image card type. Each card uses the Beryllium datasource with a title, description copy, and a link styled as an icon-link. The cards are configured at medium breakpoint to occupy 4 columns each (3-up layout) with equal height enforced by the card group container.

Professional Liability

Comprehensive coverage for professionals against claims of negligence, errors, or omissions in their services.

Cyber Insurance

Protect your business against data breaches, ransomware attacks, and other digital threats with tailored cyber coverage.

Workers Compensation

Statutory coverage providing wage replacement and medical benefits to employees injured during the course of employment.

Usage Notes

Usage Notes

  • Card Groups is a container-only rendering. It exposes an inner placeholder where individual Card renderings are placed.
  • Each Card requires a Beryllium datasource (Title, Copy, Image, Link). If the Link target item is restricted by security, the card is hidden automatically.
  • Use the CardType dictionary phrase on the Card rendering parameters to switch between image, horizontal, bordered, and overlayed layouts.
  • The StretchedLink parameter is enabled by default, making the entire card clickable. Set it to 0 to disable.
  • Column widths (Small / Medium / Large) on each Card control their size within the row. Use matching widths for a uniform grid or mix values for asymmetric layouts.
  • The Card Groups container applies its own CSS classes via _.CardGroup.Classes. Additional layout classes (gutters, alignment) should be set on the parent section, not on the Card Group itself.
  • For equal-height cards, the default rendering already uses Bootstrap h-100 on each card element.

Control Properties

Control Properties

Card Groups (Container)

PropertySourceDescription
CSS Classes_.CardGroup.ClassesAdditional CSS classes applied to the wrapper div of the card group container.
Placeholder_.CardGroup.PlaceholderThe inner placeholder key that accepts Card child renderings.

Card (Child Rendering)

PropertySourceDescription
CardTypeDictionary PhraseLayout variant: image (default), horizontal, bordered, or overlayed.
StretchedLinkRendering ParameterWhen not 0, the entire card becomes clickable via the primary link. Default is enabled.
LinkStyleDictionary PhraseCSS class(es) applied to the CTA link/button (e.g. btn btn-primary, icon-link).
ButtonSizeDictionary PhraseButton sizing class (e.g. btn-sm, btn-lg).
HeadingSizeDictionary PhraseHeading element used for the card title (defaults to h4).
BorderColorDictionary PhraseBootstrap border color class suffix (e.g. primary, danger).
TextColorDictionary PhraseBootstrap text color class suffix applied to the card body.
Small / Medium / LargeRendering ParameterBootstrap column width at each breakpoint (controls card width within the row).
OffsetSmall / OffsetMedium / OffsetLargeRendering ParameterColumn offset at each breakpoint.
data-testidRendering ParameterOptional test identifier added to the card wrapper element.

Beryllium Datasource Fields

FieldTypeDescription
TitleSingle-Line TextCard heading text rendered inside the configured heading element.
CopyRich TextCard body copy rendered below the title.
ImageImageCard image. Used as card-img-top in default mode, fluid in horizontal, and background in overlayed.
LinkGeneral LinkPrimary CTA link. The link text is rendered inside the button/link element.

Template properties

Control properties