react-default-image
v1.0.5
Published
Default image for reactJs
Downloads
11
Maintainers
Readme
react-default-image
Default image Component for ReactJS
- Just Three Elements will be used. (for display images)
- Support GPU Render, by default.
- Support SSR. ( server-side-rendering )
Live demo
Install
// npm
npm install --save react-default-image
// yarn
yarn add react-default-image
Usage
import { DefaultImage } from 'default-image'
import 'default-image/dist/index.css'
const App = () => {
return (
<div>
<DefaultImage width={100} height={70} />
</div>
);
}
If You want to see more detail source,
Props
| Name | Type | Required | Description | Default |
| :-----------------: | :--------: | :--------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------- |
| width | Number
| Required
| Image Width | |
| height | Number
| Required
| Image Height |
License
MIT