react-image-overlay-effect
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

react-image-overlay-effect

A React component for displaying an overlay effect on an image





Install

yarn add react-image-overlay-effect @emotion/react @emotion/styled

Usage

import React from 'react'

import { ImageOverlay } from 'react-image-overlay-effect'

const App = () => (
  <ImageOverlay
    src="https://reactjs.org/logo-og.png"
    description={<p>A JavaScript library for building user interfaces</p>}
  )
)

Props

The ImageOverlay component can be passed all the props that are supported by the native img element except one prop description

description: React.ReactNode

Use this prop to render a description text when the overlay effect is active.

License

MIT © nitin42

Readme

Keywords

none

Package Sidebar

Install

npm i react-image-overlay-effect

Weekly Downloads

13

Version

1.0.0

License

MIT

Unpacked Size

10.4 kB

Total Files

8

Last publish

Collaborators

  • nitin42