react-svg-holder
v1.0.4
Published
React image component with fallback to svg placeholder with custom text, color, dimensions, etc.
Downloads
7
Readme
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