Skip to content

Stage - Web Component

The Stage component can be used imported from:

Playground

Parameters

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

By default, all the parameters are optional or can be set in different, except for the ones marked as required

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

NameTypeDescriptionSlotA11y
contentstringThe stage contentdefault
headerstringHeader of the stageheader
configstringConfiguration of the stage
image-srcstringURL of the image

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 stage
headerspanHeader of the stage
actionsspanActions of the stage

Parameters use

content

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

Stage content

The header parameter is a string that defines the stage header or using the header slot.

Content goes here Welcome to ZDS 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

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

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

HTML Examples

CodeSandbox example