Shortcuts
Next region
F9
Previous region
⇧F9

Image

core package4.0.1

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.

Examples

Pega

Related components

Properties

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