Skip to main content

Block Image View

Screenshot of the Console with the correct URL highlighted.

Overview

This component is an image container.

Details

CriteriaComponent Meets Criteria
Has hover stylesNo
Has light and dark modeYes
Has brand themingYes

Component Props

Prop NameTypeDescription
altTextstringAlternative text if image does not render. Also relevant for accessibility.
imgSrcobjectThe image source.

Example Code

import ImageViewBlock from '@site/src/elements/ImageViewBlock';
import Image from '@site/static/images/banners/greenField.png';

<div style={{marginBottom: '20px'}}>
<ImageViewBlock altText={'Screenshot of the Console with the correct URL highlighted.'} imgSrc={Image} />
</div>