Skip to content

Stage banner - Web Component โ€‹

Browser support โ€‹

Parameters โ€‹

The Web component uses the <z-stage-banner> tag:

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescription
config
(optional)
stringConfiguration of the stage banner
shape
(optional)
stringShape of the stage banner
pictogram
(optional)
stringPictogram of the stage banner
image-src
(optional)
stringURL of the image
category
(optional)
stringCategory of the stage banner

shape โ€‹

The shape attribute it's used to define the shape we want to render.

Content goes here

config โ€‹

The configattribute only affects the shape variant. The configurable modifiers are:

  • left - Puts the shape on the left side of the banner.
  • center - aligns the content to the center.

Content goes here

pictogram โ€‹

The pictogram attribute it's used to define the pictogram we want to render.

Content goes here

image-src โ€‹

The image-src parameter is used to define the image URL to be displayed inside Stage Banner.

Content goes here

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.

Content goes here

category โ€‹

The category attribute it's used to write the category name above the content.

Content goes here

Playground โ€‹

Customization โ€‹

HTML Examples โ€‹

Imports
html
<link rel="stylesheet" href="/0.4.2/@zurich/web-components/styles.css" />
<script type="module" src="/0.4.2/@zurich/web-components/stage-banner.js"></script>
Code
html
<z-stage-banner pictogram="gesture-risk" category="Category lorem ipsum" />
Headline lorem ipsum
</z-stage-banner>