npx github-download-directory carllosnc/react-thekit src/components/ImageBlock
import { ImageBlock } from '@/components'
npm i -S react-lazy-load
<ImageBlock className="max-w-[400px]" width={300} height={200} bgColor="#E7204D" src="image-source-path" />
Block image extends React.ImgHTMLAttributes<HTMLImageElement>
then you can use all <img />
properties.
name | type | default | description |
---|---|---|---|
bgColor | string(hex) | undefined | backdrop that will show when image is loading |