Banner

Banner Showcase

Storybook
A side-by-side promotional banner pairing a media image with a copy block and a single CTA.

Loading playground

Overview

BannerShowcase lays a media image alongside a copy block (caption, heading, description) and a single CTA. On narrow viewports the image stacks above the content; from the MD container breakpoint, the image and content sit side-by-side.

The mediaAspectRatio prop picks a single ratio for the image (16/9, 4/3, or 1/1) that applies across all breakpoints. Text and chrome are surface-tone aware via the surrounding MediaStage, so the banner stays legible on themed backdrops. Apply .radius-contained on a padded parent to round corners inside a container.

The contentPadding prop ('default' | 'm' | 's' | 'none') tunes the padding around the banner's inner content, surfaced as the Design → Layout Content Padding control in Studio. Leave it unset (or default) to keep the existing padding.

Key Business & UX Benefits

  • A clear image-plus-copy split frames the product or campaign next to its pitch, so shoppers grasp the offer in one glance.
  • A single configurable aspect ratio keeps the image proportion predictable across breakpoints, which protects layout from device to device.
  • Surface-tone-aware chrome keeps the headline readable on any backdrop, so brand teams style sections without commissioning a second design pass.
  • Editors swap the image, copy, and CTA per drop, so merchants run rapid seasonal storytelling without dev involvement.
Pro-Tip from Larry: Pick the aspect ratio that matches your asset library so the media never crops awkwardly between breakpoints.

Feature List

  • Side-by-side image and copy block (caption, heading, description) with a single CTA
  • Mobile stacks the image above the content; MD+ shifts to a horizontal layout
  • Single mediaAspectRatio (16/9, 4/3, or 1/1) applied across breakpoints for predictable cropping
  • Surface-tone-aware chrome via MediaStage keeps headlines readable on light, dark, and bright backdrops
  • Editors swap the image, copy, and CTA per drop for fast seasonal storytelling
  • Apply .radius-contained on a padded parent to round corners inside a container

API Reference

PropDefaultType
headingrequiredstring
headingAsh2

Semantic HTML element for the heading (h1-h6 or div). Defaults to h2.

captionstring
captionVariantOmit<CaptionFlagProps, "text">

Styling for the caption — colour scheme, plain/boxed variant, text shadow.

descriptionstring
headingColorstring
descriptionColorstring
backgroundColorstring
media
mediaAspectRatio16/9"16/9" | "4/3" | "1/1"
alignleft"left" | "right" | "center"
cta
headingSizeml

Per-region override for the heading typography. Default 'ml'.

backgroundImage
backgroundImageSizesstring
surfaceTone
overlay
contentPadding

Reduces the banner's inner content padding toward the edges. See {@link CtaBannerContentPadding}.

Changelog

v2.4.0Added

New contentPadding prop ('default' | 'm' | 's' | 'none') with matching .banner-showcase--content-padding-{m,s,none} modifier classes. Unset preserves the existing padding, and the Design → Layout Content Padding control exposes it in Studio.

Copyright © 2026 Laioutr GmbH