OTTODesign System

Components

Promo card

A promo card is an interactive container that is used for promotional context. It is used for example on the storefront for the topic promo, brand promo or big shop promo. Promo cards are always fully interactive and only link to one target.

Configurator

LivePromo card: colours, elevation, header content, logo, tags and action signifier
Neu im ShopWohnzimmer-20 %
HTML
<oc-promo-card-v2 elevation-level="stacked" style="width:min(100%,360px)"><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="header-logo" src="/references/logos/otto/otto-de-press-Otto_Logo_rgb.png" alt="OTTO" hidden="hidden"><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><oc-tag-v1 slot="tags" variant="sale">-20 %</oc-tag-v1><oc-action-signifier-v1 slot="action-signifier-header" label="Entdecken" variant="icon"></oc-action-signifier-v1></oc-promo-card-v2>

Usage

Neu im ShopWohnzimmerOTTO-12 %-20 % ExtraNeuSofas und SesselFür gemütliche Abende
LiveAnatomy
HTML
<div class="on-frame"><div style="max-width:360px;margin:0 auto">
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="header-logo" src="/references/logos/otto/otto-de-press-Otto_Logo_rgb.png" alt="OTTO"><oc-action-signifier-v1 slot="action-signifier-header" variant="icon"></oc-action-signifier-v1><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><oc-tag-v1 slot="tags" variant="sale" size="50">-12 %</oc-tag-v1><oc-tag-v1 slot="tags" variant="sale" size="50">-20 % Extra</oc-tag-v1><oc-tag-v1 slot="tags" variant="info-primary" size="50">Neu</oc-tag-v1><span slot="footer-headline">Sofas und Sessel</span><span slot="footer-text">Für gemütliche Abende</span><oc-action-signifier-v1 slot="action-signifier-footer" variant="icon"></oc-action-signifier-v1></oc-promo-card-v2>
</div>

Variants

You can use the header or the footer with different text combinations. For the header you can also optionally add a logo. For both the header and the footer, you can optionally add an action signifier as text or icon to increase the affordability of the promo card. You can also use the inverted variant of the promo card if you want a colored background.

Headline

Wohnzimmer

Overline, headline and logo

Neu im ShopWohnzimmerOTTO
LivePromo card with header
HTML
<div class="on-frame" style="display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start">
<p class="demo-label">Headline</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>
<p class="demo-label">Overline, headline and logo</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="header-logo" src="/references/logos/otto/otto-de-press-Otto_Logo_rgb.png" alt="OTTO"><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>

Text

Alles fürs Kinderzimmer

Headline and text

KinderzimmerAlles zum Spielen und Träumen
LivePromo card with footer
HTML
<div class="on-frame" style="display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start">
<p class="demo-label">Text</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-shop-teaser-kinderzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-text">Alles fürs Kinderzimmer</span></oc-promo-card-v2></div>
<p class="demo-label">Headline and text</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-shop-teaser-kinderzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Kinderzimmer</span><span slot="footer-text">Alles zum Spielen und Träumen</span></oc-promo-card-v2></div>
Fashion DropMojo MojoDer neue Fashion Drop
LivePromo card inverted
HTML
<div class="on-frame" style="display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start">
<oc-promo-card-v2 inverted><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Fashion Drop</span><span slot="header-headline">Mojo</span><img slot="main" src="/references/images/otto/otto-fashion-drop-mojo-06.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2>
<oc-promo-card-v2 inverted><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-fashion-drop-mojo-06.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Mojo</span><span slot="footer-text">Der neue Fashion Drop</span></oc-promo-card-v2>

In the header

Neu im ShopWohnzimmer

In the footer

KinderzimmerAlles zum Spielen
LiveAction signifier
HTML
<div class="on-frame" style="display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start">
<p class="demo-label">In the header</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><oc-action-signifier-v1 slot="action-signifier-header" variant="text" label="Entdecken"></oc-action-signifier-v1><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>
<p class="demo-label">In the footer</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-shop-teaser-kinderzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Kinderzimmer</span><span slot="footer-text">Alles zum Spielen</span><oc-action-signifier-v1 slot="action-signifier-footer" variant="text" label="Entdecken"></oc-action-signifier-v1></oc-promo-card-v2></div>

Behavior

States

Enabled

Neu im ShopWohnzimmer

Hover (shown)

Neu im ShopWohnzimmer

Pressed (shown)

Neu im ShopWohnzimmer

Selected

Neu im ShopWohnzimmer

Focus (shown)

Neu im ShopWohnzimmer
LiveStates
HTML
<div class="on-frame" style="display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px;align-items:start">
<p class="demo-label">Enabled</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>
<p class="demo-label">Hover (shown)</p><oc-promo-card-v2 style="background-image:linear-gradient(var(--oc-semantic-color-overlay-hover),var(--oc-semantic-color-overlay-hover))"><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>
<p class="demo-label">Pressed (shown)</p><oc-promo-card-v2 has-action-child-active><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>
<p class="demo-label">Selected</p><oc-promo-card-v2><a href="#" aria-current="page" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>
<p class="demo-label">Focus (shown)</p><oc-promo-card-v2 style="outline:2px solid var(--oc-semantic-focus-outline-color);outline-offset:2px"><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>

For information on states, refer to foundations.

Placement

If you want to arrange promo cards vertically, the recommended spacing is 40px. The recommended spacing results from the bottom spacing (24px) of the upper promo card and the top spacing (16px) of the lower promo card. If you want to arrange promo cards horizontally the recommended spacing is 16px.

Neu im ShopWohnzimmerOTTO Neu im ShopKinderzimmerOTTO

16px horizontal gap

LiveHorizontal gap
HTML
<div class="on-frame"><div style="display:grid;grid-template-columns:1fr 1fr;gap:16px">
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="header-logo" src="/references/logos/otto/otto-de-press-Otto_Logo_rgb.png" alt="OTTO"><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2>
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Kinderzimmer</span><img slot="header-logo" src="/references/logos/otto/otto-de-press-Otto_Logo_rgb.png" alt="OTTO"><img slot="main" src="/references/images/otto/otto-shop-teaser-kinderzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2>
<p class="demo-label" style="text-align:center;margin-top:12px">16px horizontal gap</p></div>
Neu im ShopWohnzimmerOTTO Neu im ShopKinderzimmerOTTO

40px vertical gap (24px + 16px)

LiveVertical gap
HTML
<div class="on-frame"><div class="narrow" style="margin:0 auto;display:grid;gap:40px">
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="header-logo" src="/references/logos/otto/otto-de-press-Otto_Logo_rgb.png" alt="OTTO"><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:8/3;object-fit:cover"></oc-promo-card-v2>
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Kinderzimmer</span><img slot="header-logo" src="/references/logos/otto/otto-de-press-Otto_Logo_rgb.png" alt="OTTO"><img slot="main" src="/references/images/otto/otto-shop-teaser-kinderzimmer.jpg" alt="" style="aspect-ratio:8/3;object-fit:cover"></oc-promo-card-v2>
<p class="demo-label" style="text-align:center;margin-top:12px">40px vertical gap (24px + 16px)</p></div>

You can use the promo card standalone or with multiple instances next to each other. When placing multiple promo cards side by side, they can either have the same height (fill-parent) or different heights (fit-content). You can also place multiple instances inside a cinema.

Sofas, Tische und Leuchten für dein Wohnzimmer. Betten, Regale und Spielzeug für dein Kinderzimmer. Alles, was kleine Entdecker glücklich macht, bequem nach Hause geliefert. Neue Bücher.
LiveFit-content height
HTML
<div class="on-frame" style="display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start">
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-text">Sofas, Tische und Leuchten für dein Wohnzimmer.</span></oc-promo-card-v2>
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-shop-teaser-kinderzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-text">Betten, Regale und Spielzeug für dein Kinderzimmer. Alles, was kleine Entdecker glücklich macht, bequem nach Hause geliefert.</span></oc-promo-card-v2>
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-buecher-sortiment.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-text">Neue Bücher.</span></oc-promo-card-v2>
Sofas, Tische und Leuchten für dein Wohnzimmer, alles bequem nach Hause geliefert. Betten, Regale und Spielzeug für dein Kinderzimmer, alles bequem nach Hause geliefert. Krimis, Kochbücher und Kinderbücher, alles bequem nach Hause geliefert.
LiveFixed height
HTML
<div class="on-frame" style="display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px">
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-text" style="display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden">Sofas, Tische und Leuchten für dein Wohnzimmer, alles bequem nach Hause geliefert.</span></oc-promo-card-v2>
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-shop-teaser-kinderzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-text" style="display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden">Betten, Regale und Spielzeug für dein Kinderzimmer, alles bequem nach Hause geliefert.</span></oc-promo-card-v2>
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-buecher-sortiment.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-text" style="display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden">Krimis, Kochbücher und Kinderbücher, alles bequem nach Hause geliefert.</span></oc-promo-card-v2>
WohnzimmerSofas und Sessel KinderzimmerBetten und Regale BücherNeu im Sortiment MojoDer neue Fashion Drop BüroTische und Stühle LieferungSo kommt dein Paket
LiveInside cinema
HTML
<div class="on-frame">
<oc-cinema-v1 oc-aria-label="Wohnideen" items-per-page="4">
  <oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Wohnzimmer</span><span slot="footer-text">Sofas und Sessel</span></oc-promo-card-v2>
  <oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-shop-teaser-kinderzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Kinderzimmer</span><span slot="footer-text">Betten und Regale</span></oc-promo-card-v2>
  <oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-buecher-sortiment.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Bücher</span><span slot="footer-text">Neu im Sortiment</span></oc-promo-card-v2>
  <oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-fashion-drop-mojo-06.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Mojo</span><span slot="footer-text">Der neue Fashion Drop</span></oc-promo-card-v2>
  <oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-campus-social-space.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Büro</span><span slot="footer-text">Tische und Stühle</span></oc-promo-card-v2>
  <oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><img slot="main" src="/references/images/otto/otto-peak2025-hermes-zustellung.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Lieferung</span><span slot="footer-text">So kommt dein Paket</span></oc-promo-card-v2>
</oc-cinema-v1>

Promo cards are placed on top of the frame (level 0) inside the canvas (level 1). Promo cards can also be placed on top of the canvas (level 1.5) as stacked promo cards. You can use stacked promo cards when you want to place a card inside a block. Therefore, stacked promo cards have a different background color (stacked background).

Default, on frame

Neu im ShopWohnzimmer

Stacked, inside a block

Neu im ShopWohnzimmer
LiveDefault and stacked
HTML
<div style="display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center" class="on-frame">
<p class="demo-label">Default, on frame</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>
<oc-block-v2><div class="group"><p class="demo-label">Stacked, inside a block</p><oc-promo-card-v2 elevation-level="stacked"><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div></oc-block-v2>

Responsiveness

The promo card has different stylings depending on the breakpoints.

For breakpoint S to M the promo card uses following stylings:

  • 4:3 aspect ratio for the Image
  • Headline100 for the header headline
  • Headline50 for the footer headline
  • 64px width for the logo

For breakpoint L to XL the promo card uses following stylings:

  • 8:3 aspect ratio for the Image
  • Headline200 for the header headline
  • Headline100 for the footer headline
  • 348px width for the logo

Breakpoint S to M: image 4:3

Neu im ShopWohnzimmer

Breakpoint L and up: image 8:3

Neu im ShopWohnzimmer
LiveDifferences breakpoint
HTML
<div class="on-frame" style="display:grid;gap:32px">
<p class="demo-label">Breakpoint S to M: image 4:3</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2></div>
<p class="demo-label">Breakpoint L and up: image 8:3</p><oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Wohnzimmer</span><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:8/3;object-fit:cover"></oc-promo-card-v2></div>

Truncation

For the header the overline and the header headline are truncated at the end of the first line. For the footer the footer headline is truncated after 2 lines. The length of the footer text is not limited.

Neu im Shop: Möbel, Leuchten, Teppiche und Deko für dein ZuhauseWohnzimmer, Esszimmer und ArbeitszimmerOTTOSofas, Sessel, Couchtische, Stehleuchten, Kissen und Decken für gemütliche Abende zu HauseDer Fließtext im Footer wird nicht gekürzt: Hier findest du alles, was dein Wohnzimmer gemütlich macht, von der großen Wohnlandschaft bis zum kleinen Beistelltisch. Lass dich inspirieren und bestell bequem nach Hause.
LiveTruncation
HTML
<div class="on-frame"><div style="max-width:340px;margin:0 auto">
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop: Möbel, Leuchten, Teppiche und Deko für dein Zuhause</span><span slot="header-headline">Wohnzimmer, Esszimmer und Arbeitszimmer</span><img slot="header-logo" src="/references/logos/otto/otto-de-press-Otto_Logo_rgb.png" alt="OTTO"><img slot="main" src="/references/images/otto/otto-shop-teaser-wohnzimmer.jpg" alt="" style="aspect-ratio:4/3;object-fit:cover"><span slot="footer-headline">Sofas, Sessel, Couchtische, Stehleuchten, Kissen und Decken für gemütliche Abende zu Hause</span><span slot="footer-text">Der Fließtext im Footer wird nicht gekürzt: Hier findest du alles, was dein Wohnzimmer gemütlich macht, von der großen Wohnlandschaft bis zum kleinen Beistelltisch. Lass dich inspirieren und bestell bequem nach Hause.</span></oc-promo-card-v2>
</div>

Best Practices

Neu im ShopWohnzimmerOTTO KinderzimmerAlles zum Spielen
DoUse promo card either with header or footer.
Neu im ShopWohnzimmerOTTOSofas und SesselFür gemütliche Abende
Don'tUse both header and footer.

The whole card is one link

Neu im ShopWohnzimmer
DoUse promo card which is fully interactive.

Only the headline is a link

Neu im ShopWohnzimmerOTTO
Don'tUse promo card which is only partially interactive.
Neu im ShopWohnzimmerOTTO

target

DoUse promo card only with one target.
Neu im ShopWohnzimmerZur Marke OTTO

target 1: the logo

target 2: the card

Don'tUse multiple targets for promo card.
Neu im ShopWohnzimmer
DoUse the provided semantic tokens "color/background-strong" when using the inverted variant.
Neu im ShopWohnzimmer
Don'tUse custom color.
Neu im ShopWohnzimmer
CautionAvoid placing inverted promo cards on colored Blocks. or colored backgrounds

Accessibility

Implementation

Live demo

Für dich ausgewählt

Alle Angebote
Bis zu 30 % sparenSofas-30 % Neu im ShopKinderzimmer LieferungWunschtermin
LiveReal OTTO components, rendered by the OTTO component runtime
HTML
<div class="on-frame demo-stack" style="gap:16px">
<div style="display:flex;justify-content:space-between;align-items:baseline;gap:12px"><p class="oc-headline-200" style="margin:0">Für dich ausgewählt</p><oc-link-v2><a href="#">Alle Angebote</a></oc-link-v2></div>
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:16px;align-items:start">
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Bis zu 30 % sparen</span><span slot="header-headline">Sofas</span><oc-action-signifier-v1 slot="action-signifier-header" variant="icon"></oc-action-signifier-v1><img slot="main" src="/previews/imagery/samples/otto-lifestyle-photo/lifestyle-living-room.webp" alt="" style="display:block;margin:0;width:100%;aspect-ratio:4/3;object-fit:cover"><oc-tag-v1 slot="tags" variant="sale" size="50">-30 %</oc-tag-v1></oc-promo-card-v2>
<oc-promo-card-v2><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Neu im Shop</span><span slot="header-headline">Kinderzimmer</span><oc-action-signifier-v1 slot="action-signifier-header" variant="icon"></oc-action-signifier-v1><img slot="main" src="/previews/imagery/samples/otto-lifestyle-photo/lifestyle-kids-room.webp" alt="" style="display:block;margin:0;width:100%;aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2>
<oc-promo-card-v2 inverted><a href="#" aria-label="oc-auto"></a><span slot="header-overline">Lieferung</span><span slot="header-headline">Wunschtermin</span><oc-action-signifier-v1 slot="action-signifier-header" variant="icon" inverted></oc-action-signifier-v1><img slot="main" src="/previews/imagery/samples/otto-lifestyle-photo/lifestyle-parcel-doorstep.webp" alt="" style="display:block;margin:0;width:100%;aspect-ratio:4/3;object-fit:cover"></oc-promo-card-v2>

Code

Version Tag Status API
v2 <oc-promo-card-v2> Stable PromoCardV2
v1 <oc-promo-card-v1> Deprecated PromoCardV1

API

API: <oc-promo-card-v2> (PromoCardV2)

The promo card component is a slot-based container for header content, a main visual, tags, and footer content. It supports configurable elevation levels and an inverted color style. The card becomes interactive when an interactive element (link, button, or masked link) is placed in its default slot.

Attributes / properties
Attribute Type Default Required Description
inverted boolean undefined no Sets the promo card styles to be inverted.
elevation-level "canvas" | "stacked" | "above" | "sticky" "canvas" no Sets the elevation level of the promo card. The elevation level determines the shadow and depth of the card. - canvas: no shadow, promo-card appears flat, to be used on frame. - stacked: shadow, promo-card appears stacked, to be used on canvas. - above: shadow, promo-card appears above other levels. - sticky: shadow, promo-card appears above all other levels and is sticky.

Note: When background-color or inverted is set, the elevation background color is overridden, but the elevation shadow filter is still applied.
Slots
Slot Required Description
default no Can be one of the following elements: - <input type="checkbox"/> for multi-selection - <input type="radio"/> for single-selection - <a href="#"> for a link - <div role="link" tabindex="0" data-masked-ref="Iw=="> for a masked link - <a href="#" data-masked-ref="Iw=="> for link switching

If a non-interactive element is used, the promo card will not have any interactive styles or behaviors applied to it.

For more information on interactive components, refer to the interactive component slots documentation.

Empty interactive elements (link, button) have no accessible name by default. Use aria-label="oc-auto" to request the component's auto-generated label so the card content names the control.
header-headline no Sets the main headline that appears in the card header.
header-logo no Sets the logo that appears in the header.
Example:
<img slot="header-logo" src="logo.png" alt="Logo" />
header-overline no Sets the overline that appears above the card headline in the card header.
main no Sets the main content of the promo card. Usually, it contains an image. The aspect ratio of the image defines the aspect ratio of the promo card. Common aspect ratios are 4/3 and 8/3.
tags no Holds the oc-tag elements that appear in the bottom left corner of the main content.
Example:
<oc-tag-v1 slot="tags">Tag</oc-tag-v1>
footer-headline no Sets the second headline that appears in the card footer.
footer-text no Sets the text content that appears in the footer below the footer headline.
action-signifier-header no Sets the action signifier that appears in the header.
action-signifier-footer no Sets the action signifier that appears in the footer.
Events
Event Detail type Description
oc-property-change OcPromoCardV2Events["oc-property-change"] Whenever a property value changes, this event triggers. Use this event to track all property changes within the component.

Refer to the Events documentation for more information.
oc-mount { component: string; } Fired when the component is mounted to the DOM. The event is fired when the onMount hook of the component is called by the runtime.
oc-unmount { component: string; } Fired when the component is unmounted from the DOM. The event is fired when the function returned by the onMount hook of the component is called by the runtime.
CSS custom properties
Custom property Default Description
--background-color undefined Sets a custom background color through a CSS variable. Note: The preferred way of using colors is via design tokens instead of hex values.

Examples

Listed below are the most common variations of the promo card component as well as specific component variations for different use cases.

Default

The default configuration uses the main slot with a 4:3 aspect ratio image.

placeholder image
HTML
<oc-promo-card-v2>
<img
      slot="main"
      src="https://www.otto.de/assets-storybook/assets/img-placeholder-100.DVwSxVZf.png"
      alt="placeholder image"
    />
</oc-promo-card-v2>
Inverted

The inverted configuration uses the main slot with a 4:3 aspect ratio image and inverted colors.

placeholder image
HTML
<oc-promo-card-v2 inverted>
<img
      slot="main"
      src="https://www.otto.de/assets-storybook/assets/img-placeholder-100.DVwSxVZf.png"
      alt="placeholder image"
    />
</oc-promo-card-v2>
With button behavior

Putting an empty <button> tag into the default slot makes the promo card behave as a button.

placeholder image
HTML
<oc-promo-card-v2>
<img
      slot="main"
      src="https://www.otto.de/assets-storybook/assets/img-placeholder-100.DVwSxVZf.png"
      alt="placeholder image"
    />
<button  aria-label="oc-auto"></button>
</oc-promo-card-v2>

The promo card component with an <a> tag as default slot content behaves as a link. Search engines will detect the href.

placeholder image
HTML
<oc-promo-card-v2>
<img
      slot="main"
      src="https://www.otto.de/assets-storybook/assets/img-placeholder-100.DVwSxVZf.png"
      alt="placeholder image"
    />
<a href="#"  aria-label="oc-auto"></a>
</oc-promo-card-v2>

The promo card component as a masked link. Search engines will not detect the href.

placeholder image
HTML
<oc-promo-card-v2>
<img
      slot="main"
      src="https://www.otto.de/assets-storybook/assets/img-placeholder-100.DVwSxVZf.png"
      alt="placeholder image"
    />
<div role="link" tabindex="0" data-masked-ref="Iw=="  aria-label="oc-auto"></div>
</oc-promo-card-v2>

The promo card component as a link with switch behavior. Search engines will detect the href, while users receive the Base64-encoded version.

placeholder image
HTML
<oc-promo-card-v2>
<img
      slot="main"
      src="https://www.otto.de/assets-storybook/assets/img-placeholder-100.DVwSxVZf.png"
      alt="placeholder image"
    />
<a href="#" data-masked-ref="Iz92YXJpYW50PWZvbw=="  aria-label="oc-auto"></a>
</oc-promo-card-v2>
Older versions

Migration to v2

Migration from promo card v1 to v2

The oc-promo-card component has been updated from oc-promo-card-v1 to oc-promo-card-v2. This migration guide provides step-by-step instructions to update your project to the latest version.

Skip to:

What's new
Flexible content

The new slot-based architecture provides:

  • Flexible content placement with named slots instead of text attributes
  • Support for rich content, including HTML elements and custom heading levels
  • Full control over the interactive element through the interactive component slots pattern (link, masked link, button, checkbox, radio) instead of fixed href/as-button attributes
API changes
Changed slots

The following slots have been changed:

v1 Slot v2 Slot Notes
default (image) main Main visual content now uses the main slot
primary-action default The interactive element now uses the default slot
logo header-logo Deprecated logo slot removed, use header-logo instead
New slots

The following slots have been added in v2:

Slot Description Notes
header-headline Replaces the header-headline/main-headline attribute Content and heading tag are slotted
header-overline Replaces the header-overline/overline attribute Content is slotted
footer-headline Replaces the footer-headline attribute Content and heading tag are slotted
footer-text Replaces the footer-text attribute Content is slotted
Removed attributes

The following attributes have been removed and should now be set through slotted content or the default slot's interactive element:

v1 Attribute v2 Equivalent Notes
header-headline / main-headline Use the header-headline slot Text content moved to slot
header-headline-level / main-headline-level Use a heading tag (h1–h6) in the header-headline slot No level attribute anymore; the slotted tag defines the semantics
footer-headline Use the footer-headline slot Text content moved to slot
footer-headline-level Use a heading tag (h1–h6) in the footer-headline slot No level attribute anymore; the slotted tag defines the semantics
footer-text Use the footer-text slot Text content moved to slot
overline / header-overline Use the header-overline slot Text content moved to slot
href, base64-href, target, rel, as-button Slot an <a>, <button>, or masked <div role="link"> into the default slot Follow the interactive component slots patterns
background-color Use the --background-color CSS variable No change from the already-deprecated v1 behavior
oc-aria-visible-elements — Removed, no replacement
oc-role Set role directly on oc-promo-card-v2 Removed, set the host role yourself if needed
How to migrate

The main change is that v2 moves all text-based attributes (headlines, overline, footer text) into named slots, and moves the interactive element from the primary-action slot into the default slot, while the former default slot (main image) is renamed to main.

Migrate a basic promo card
<!-- From: -->
<oc-promo-card-v1>
  <a slot="primary-action" href="/product" aria-label="Product name"></a>
  <img src="product.jpg" alt="" />
</oc-promo-card-v1>
<!-- To: -->
<oc-promo-card-v2>
  <a href="/product" aria-label="Product name"></a>
  <img slot="main" src="product.jpg" alt="" />
</oc-promo-card-v2>
<!-- From: -->
<oc-promo-card-v1
  header-headline="New arrivals"
  header-headline-level="2"
  header-overline="Sale"
  footer-headline="Up to 50% off"
  footer-headline-level="3"
  footer-text="Valid while stocks last"
>
  <a slot="primary-action" href="/sale" aria-label="Sale"></a>
  <img src="sale.jpg" alt="" />
</oc-promo-card-v1>
<!-- To: -->
<oc-promo-card-v2>
  <a href="/sale" aria-label="Sale"></a>
  <span slot="header-overline">Sale</span>
  <h2 slot="header-headline">New arrivals</h2>
  <img slot="main" src="sale.jpg" alt="" />
  <h3 slot="footer-headline">Up to 50% off</h3>
  <span slot="footer-text">Valid while stocks last</span>
</oc-promo-card-v2>
Migrate a promo card using the deprecated main-headline attributes

The deprecated main-headline and main-headline-level attributes follow the same migration path as header-headline and header-headline-level.

<!-- From: -->
<oc-promo-card-v1 main-headline="New arrivals" main-headline-level="2">
  <a slot="primary-action" href="/sale" aria-label="Sale"></a>
  <img src="sale.jpg" alt="" />
</oc-promo-card-v1>
<!-- To: -->
<oc-promo-card-v2>
  <a href="/sale" aria-label="Sale"></a>
  <h2 slot="header-headline">New arrivals</h2>
  <img slot="main" src="sale.jpg" alt="" />
</oc-promo-card-v2>
<!-- From: -->
<oc-promo-card-v1 base64-href="L2ludGVybmFsL3BhZ2U=">
  <img src="product.jpg" alt="" />
</oc-promo-card-v1>
<!-- To: -->
<oc-promo-card-v2>
  <div role="link" tabindex="0" data-masked-ref="L2ludGVybmFsL3BhZ2U=" aria-label="oc-auto"></div>
  <img slot="main" src="product.jpg" alt="" />
</oc-promo-card-v2>

API v1

API: <oc-promo-card-v1> (PromoCardV1)

The {Latest.default.name.toLowerCase()} component provides attributes for setting the main headline, overline, footer headline, footer text, and a link that the card directs to. The card is not interactive if no link is set. This component also provides slots for setting the main content, logo, and tags that appear in the card.

Attributes / properties
Attribute Type Default Required Description
header-headline string undefined no Sets the main headline that appears in the card header.
header-headline-level 1 | 2 | 3 | 4 | 5 | 6 undefined no If set, renders the headline content inside a heading tag with the specified level. Only applies if the main-headline attribute is set.

The heading level has no visual effect but provides semantic structure for screen readers. If not set, renders a span instead of a heading tag.
main-headline string undefined no Deprecated: Use the header-headline attribute instead.

Sets the main headline that appears in the card header.
main-headline-level 1 | 2 | 3 | 4 | 5 | 6 undefined no Deprecated: Use the header-headline-level attribute instead.

If set, renders the headline content inside a heading tag with the specified level. Only applies if the main-headline attribute is set.

The heading level has no visual effect but provides semantic structure for screen readers. If not set, renders a span instead of a heading tag.
footer-headline string undefined no Sets the second headline that appears in the card footer.
footer-headline-level 1 | 2 | 3 | 4 | 5 | 6 undefined no If set, renders the headline content of the footer inside a heading tag with the specified level. Only applies if the footer-headline property is set.

If not set, renders a span instead of a heading tag.
footer-text string undefined no Sets the text content that appears in the footer below the footer headline.
header-overline string undefined no Sets the overline that appears above the card headline in the card header.
overline string undefined no Deprecated: Use the header-overline attribute instead.

Sets the overline that appears above the card headline in the card header.
inverted boolean false no Sets the promo card styles to be inverted.
elevation-level "canvas" | "stacked" | "above" | "sticky" "canvas" no Sets the elevation level of the card. The elevation level determines the shadow and depth of the card. - canvas: no shadow, promo-card appears flat, to be used on frame.

Note: Has no effect, when background-color or inverted has been set. - stacked: shadow, promo-card appears stacked, to be used on canvas.

Note: Has no effect, when background-color or inverted has been set. - above: shadow, promo-card appears above other levels. - sticky: shadow, promo-card appears above all other levels and is sticky.
background-color string undefined no Deprecated: The background-color attribute is deprecated. Please use the CSS-Variable --background-color instead.

Sets a custom background color.
href string undefined no Deprecated: Use an a tag in the default slot instead.

Visit SEO optimization techniques for more information.

Sets the link target of the promo card.
base64-href string undefined no Sets the base64 encoded link target of the promo card. Use this attribute to prevent search engines from indexing the link target.
target "_blank" | "_self" | "_parent" | "_top" undefined no Sets the target attribute of the promo card.

Note Only applies when href or base64Href is set.
rel string undefined no Sets the rel attribute of the promo card.

Note Only applies when href or base64Href is set.
as-button boolean false no Determines if the promo card behaves as a button or as a link when clicked. Set to true to make the promo card behave as a button and trigger an action instead of navigating to a new page.
oc-aria-visible-elements OcAriaVisibleElement[] ["overline","headerOverline","mainHeadline","headerHeadline","logo","headerLogo","tags","mainContent","footerHeadline","footerText"] no Defines which elements of the promo card are visible to screen readers.
oc-role string "article" no Set the aria role of the promo card.
Slots
Slot Required Description
default no Sets the main content of the promo card. Usually, it contains an image. The aspect ratio of the image defines the aspect ratio of the promo card. Common aspect ratios are 4/3 and 8/3.
logo no Deprecated: Use the header-logo slot instead.

Sets the logo that appears in the header.
Example:
<span slot="logo">Logo</span>
header-logo no Sets the logo that appears in the header.
Example:
<span slot="logo">Logo</span>
tags no Holds the oc-tag elements that appear in the bottom left corner of the main content.
Example:
<oc-tag-v1 slot="tags">Tag</oc-tag-v1>
action-signifier-header no Sets the action signifier that appears in the header.
action-signifier-footer no Sets the action signifier that appears in the footer.
primary-action no Add an empty tag to change the default behavior of the card component.

- empty a tag: the card component behaves as a link (SEO relevant) - empty button tag: the card component behaves as a button - empty div tag: for link masking when there are multiple interactive elements
Events
Event Detail type Description
oc-property-change OcPromoCardV1Events["oc-property-change"] Whenever a property value changes, this event triggers. Use this event to track all property changes within the component.

Refer to the Events documentation for more information.
oc-mount { component: string; } Fired when the component is mounted to the DOM. The event is fired when the onMount hook of the component is called by the runtime.
oc-unmount { component: string; } Fired when the component is unmounted from the DOM. The event is fired when the function returned by the onMount hook of the component is called by the runtime.
CSS custom properties
Custom property Default Description
--background-color undefined Sets a custom background color through a CSS variable. Note: The preferred way of using colors is via design tokens instead of hex values.