CompactProductDetailBlockBanner
Compact Shopify product detail block with a CMS-preselected variant.
Includes the common banner props.

Props
id●required
string
CMS id.
product●required
Shopify.Storefront.Product
Shopify storefront product selected in CMS.
selectedVariantId●required
string
Preselected Shopify variant gid configured in CMS.
Behavior notes
- Uses
selectedVariantIdas fixed selection source. - Keeps cart integration and quantity handling from the full detail block.
- Shows variant hint text when a product has multiple variants.
Example
const banner: CompactProductDetailBlockBanner = {
typename: BannerTypename.CompactProductDetailBlock,
id: 'b_123',
title: 'Produkt kompakt',
titleTag: 'h2',
titleAlign: 'left',
cssId: null,
cssClasses: null,
product: {} as Shopify.Storefront.Product,
selectedVariantId: 'gid://shopify/ProductVariant/123'
};