Placeholders
For the complete list of props, use your IDE’s autocomplete functionality.
Image placeholder
Section titled “Image placeholder”<ImagePlaceholder url='https://picsum.photos/200' />Image display mode
Section titled “Image display mode”<ImagePlaceholder url='https://picsum.photos/900/380' imageMode='contain'/><ImagePlaceholder url='https://picsum.photos/900/380' size='full'/>Styles
Section titled “Styles”<ImagePlaceholder style='simple'/>No image (placeholder only)
Section titled “No image (placeholder only)”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/>File placeholder
Section titled “File placeholder”<FilePlaceholder fileName='demo.json' icon={file}/>Media placeholder
Section titled “Media placeholder”style and size works the same as in the ImagePlaceholder, so they won’t be covered again.
<MediaPlaceholder icon={magicAlt} />Help text
Section titled “Help text”<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.' /> }/>