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

Parameters are the attributes that can be used to customize the component when using it in a project. They apply to the WebComponents implementation and wrappers and to the Vue and React CSS implementations. Some parameters names change between the implementations, in order to follow the conventions of each technology and framework.

For example, the param model is named ngModel in Angular, modelValue in Vue, but stays as model in React.

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 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
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

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