PlaceholderImage

The PlaceholderImage component is a styled <image> element with max-width: 100%.

<PlaceHolderImage
  height='100'
  width='100'
  blur
/>
ReferenceError: PlaceHolderImage is not defined
<Box width='200'>
<PlaceholderImage
  height='250'
  width='300'
  chooseSrc='0'
/>
</Box>

Props

PropTypeDescription
ariaHiddenbooleandefault true
blurbooleanReturns a blurred random image
chooseSrcstringaccepts a string from 0 to 4
displaystringSets the image display property
heightstringSets the image height property in pixels
widthstringSets the image width property in pixels

Image Sources

String 0 to 4SrcDescription
0http://placeimg.com/${width}/${height}/anyRandom photo
1http://placekitten.com/${width}/${height}Random cat photo
2https://picsum.photos/${width}/${height}Random photo
3https://source.unsplash.com/${width}x${height}Random photo
4https://www.fillmurray.com/${width}/${height}Random Bill Murray photo