1.0.11 • Published 3 years ago

react-safe-pic v1.0.11

Weekly downloads
26
License
MIT
Repository
github
Last release
3 years ago

react-safe-pic

Install

npm install react-safe-pic
yarn add react-safe-pic

Usage

import React from 'react'
import { SafePic } from 'react-safe-pic'

const App = () => {
  return (
    <SafePic
      regularImage={'your-jpg-png-image'}
      webpImage={'your-webp-image'}
    />
  )
}

How it works and when to use it?

Customize your picture?

Props

PropDescription
regularImagetype: string. here goes the JPG/PNG/SVG image
webpImagetype:string. hero goes the .WEBP images
filterColor (optional)type: string. change the color of the filter
filterOpacity (optional)type: number. Set the opacity of the filter mask
blur: (optional)type: string. blur the image
errorImage (optional)type: string. here goes the error image you want to show
alt (optional)type: string. The alt attribute of the images
errorImageAlt (optional)type: string. The alt attribute of the error image
borderRadius (optional)type: string. Put border radius to the image

License and contact

All feedback is appreciated sooo much and also suggestion about new features are most than welcome!

contact: cristiansagula@gmail.com

MIT © kristain86

1.0.9

3 years ago

1.0.8

3 years ago

1.0.6

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.2

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago