Skip to content

Promo - Web Component

The Promo component can be used imported from:

Playground

Parameters

...

Events

This component has events. Check the documentation about how to use the events.

NamePayloadDescription

Slots

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription
defaultspanContent of the promo
categoryspanCategory of the promo
headerspanHeader of the promo
actionsspanActions of the promo

Parameters use

Image

image-src

The image-src attribute is the URL of the image.

You can also use the images from the Zurich media images. Make sure you specify correctly the name of the image you want to display.

We can also use the image slot:

image-alt

The image-alt attribute is the alt text of the image.

content

The content attribute is inject the main quote or using the default slot:

Promo content

The header attribute is the title of the promo component or using the header slot.

Promotional header

shape

The shape can de changed using the shape attribute:

Content goes here

Or using a slotted z-shape. No need to set the :flip, it's automatically handled.

Content goes here

Actions

The button-text, button-icon & button-icon-right attributes can be used to the the basics of the action button.

We can alternatively use the actions slot make more complex things:

Action 1Action 2

category

The category attribute is the category of the promo component.

We can use the category slot to inject other kind of assets:

Category 1Category 2

config

The config attribute has two modifiers.

left

The left modifier will align the content to the left.

Promotional content
narrow

The narrow modifier will reduce the width of the promo component.

Promotional content

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

HTML Examples

CodeSandbox example