Skip to content

Stage - Web Component

...

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

Parameters

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

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

NameTypeDescriptionSlot
headerstringHeader of the stageheader
config
(optional)
stringConfiguration of the stage
image-src
(optional)
stringURL of the image

The available slots for the component are:

NameTagsDescription
defaultspan
headerspan
actionsspan

The header parameter is a string that defines the stage header.

Content goes here

config

The config parameter is a string that defines the stage configuration. You can configure the alignment and the padding of the stage content.

left

The left modifier is used to align the stage content to the left.

Content goes here

slim

The slim modifier is used to reduce the padding of the stage content.

Content goes here

image-src

The image-src parameter is a string that defines the stage image source for the safe-space.

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

The content of the Stage component is customizable. Check the stage anatomy guidelines for more details.

Click me

Also you can customize the background color of the stage component, using the --z-stage--bg CSS custom property.

Click me

Playground

Customization

HTML Examples

Imports
html
<link rel="stylesheet" href="/0.5.3/@zurich/web-components/styles.css" />
<script type="module" src="/0.5.3/@zurich/web-components/stage.js"></script>
Code
html
<z-stage content="Lorem ipsum" header="Welcome" image-src="../sample.webp"></z-stage>