Skip to content

Image

Zurich imagery focuses on things that will have the biggest impact: people in action, ready to change the world. For complete brand guidance please visit Zurich BlueRoom.

UX/UI Guidelines

Check the design documentation of the component in ZeroHeight.

Implementations

The component Image is available in the following technologies:

CSS Components
cssreactvue
Web Components
webreactvueangular

Parameters

Parameters

Make sure you have read about the parameters in here.

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

NameTypeSlotDescription
image-srcstringDefines the image source URL.
image-altstringDefines the alternative text of the image
configstring

Defines the aspect ratio for the image. Possible values are: full-width, 3:2, 1:1, 4:3, 16:9.

Also you can insert the value 1:1:round to get a rounded image only for 1:1 aspect ratio.

sizenumber

Defines the image column size. Possible values are: 2, 3, 4, 5, 6.

sourcesobject[]Defines the sources of the image
cross-originstring
eagerbooleanDefines the eager loading of the image
blank-fallbackbooleanDefines the blank fallback of the image
customobject
custom-strstring
z-themestring

From Figma to code

You can check the Figma implementation here. This are the available properties:

  • Size select
  • Type select

Customization

INFO

Check everything about the customization mechanics in the "How it works" documentation.

CSS VariableTypeDescription
--z-image--copyright-colorcolorCopyright foreground color
--z-image--bgcolorBackground color
--z-image--widthdistanceWidth of the image
--z-image--heightdistanceHeight of the image
--z-image--radiusdistanceRadius of the image
--z-image--fitdistanceType of fit

The color of the copyright text can be customized using the --z-image--copyright-color CSS custom property or the custom attribute.