Skip to content

Pictogram - Web Component

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

Parameters

The Web component uses the <z-pictogram> 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:

NameTypeDescriptionSlot
pictogramstringThe name of the pictogram to be displayed

pictogram

The pictogram parameter is used to define the pictogram to be displayed. Make sure that you specify, correctly, the name of the pictogram you want to use. Check the pictograms catalog

The pictogram parameter has one additional modifier for the dark variant of the pictogram, that can be applied in order after the nameusing colon (:) as the separator: The pattern would be: <name><?:dark>.

You can customize the size of the pictogram using the --z-pictogram--size CSS custom property.

Playground

Customization

HTML Examples

StackBlitz example