@schibstedspain/sui-thumbnail-basic
v1.12.0
Published
> Shows an image with an optional caption text. Can also be used as a link
Downloads
5
Readme
ThumbnailBasic
Shows an image with an optional caption text. Can also be used as a link
Installation
$ npm install @schibstedspain/sui-thumbnail-basic --save
Usage
Basic usage
import ThumbnailBasic from '@schibstedspain/sui-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.