Skip to content

Placeholders

For the complete list of props, use your IDE’s autocomplete functionality.

<ImagePlaceholder url='https://picsum.photos/200' />
<ImagePlaceholder
url='https://picsum.photos/900/380'
imageMode='contain'
/>
<ImagePlaceholder
url='https://picsum.photos/900/380'
size='full'
/>
<ImagePlaceholder
style='simple'
/>

This can also be achieved by not providing an url, but this should be a bit more performant as you don’t have an <img> without a source.

<ImagePlaceholder
noImage
/>
<FilePlaceholder
fileName='demo.json'
icon={file}
/>

style and size works the same as in the ImagePlaceholder, so they won’t be covered again.

<MediaPlaceholder icon={magicAlt} />
<MediaPlaceholder
icon={experiment}
style='simple'
size='large'
helpText='Lorem ipsum dolor.'
/>
<MediaPlaceholder
icon={experiment}
style='simple'
size='large'
helpText={
<RichLabel
icon={a11yWarning}
label='Lorem ipsum dolor.'
/>
}
/>