Skip to content

React image component with fallback to SVG placeholder with custom text, color, dimensions, etc.

License

Notifications You must be signed in to change notification settings

saeedalipoor/react-svg-holder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React SVG Placeholder

Instalation

npm install react-svg-holder

Usage

import Holder from "react-svg-holder"

const MyComponent = {
  return
  <Holder width={100} height={100} fill="#ccc" stroke="#bbb" text="Some text" textColor="#aaa" className="my-placeholder" src="/path/to/some/image" />
}

Development

git clone https://github.com/saeedalipoor/react-svg-holder.git

npm install

npm test

License MIT

About

React image component with fallback to SVG placeholder with custom text, color, dimensions, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published