ThumbnailBasic
Shows an image with an optional caption text. Can also be used as a link
Installation
$ npm install @s-ui/react-thumbnail-basic --save
Usage
Basic usage
import ThumbnailBasic from '@s-ui/react-thumbnail-basic'
return (
<ThumbnailBasic
src='image source'
alt='image alt'
href='link'
target='link target'
captionText='Show!'
placeholder={
<img src='image to be shown until loading thumbnailBasic src' />
}
/>
)
Find full description and more examples in the demo page.