Skip to content
Pictogram - Web Component
The Pictogram component can be used imported from:
Playground
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:
Name | Type | Description | Slot | A11y |
---|---|---|---|---|
pictogram | string | The name of the pictogram to be displayed |
Parameters use
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 name
using colon (:
) as the separator: The pattern would be: <name><?:dark>
.
Browser support
Detected engine:
Chromium
Webkit
Gecko