Image

core package3.2.2

Note: All components shown on this site are supported by the Constellation design system. To learn how to configure Theme Cosmos, visit Pega Community.

The Image component is a simple wrapper of the native HTML image tag with a max-width set to 100%.

Usage

The Image component requires an alt property to describe the image passed to src for accessibility purposes.

Example

Pega

Related components

Properties

NameDescriptionDefaultType
alt*The HTML alt attribute for the image.string
refRef for the wrapping element.Ref<HTMLImageElement>