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

shape โ€‹

Content goes here

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

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

We can also use tne image slot:

Content goes here

Actions โ€‹

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 โ€‹