Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/react-placeholder-image
A placeholder image component.
https://github.com/afeiship/react-placeholder-image
demo dummy image img pimg placeholder presentation react
Last synced: 9 days ago
JSON representation
A placeholder image component.
- Host: GitHub
- URL: https://github.com/afeiship/react-placeholder-image
- Owner: afeiship
- License: mit
- Created: 2016-02-01T09:54:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-20T12:47:06.000Z (8 months ago)
- Last Synced: 2024-10-26T23:36:24.481Z (about 2 months ago)
- Topics: demo, dummy, image, img, pimg, placeholder, presentation, react
- Language: TypeScript
- Homepage: https://afeiship.github.io/react-placeholder-image/
- Size: 136 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# react-placeholder-image
> A placeholder image component.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```shell
npm install -S @jswork/react-placeholder-image
```## usage
1. import css
```scss
@import "~@jswork/react-placeholder-image/dist/style.css";// or use sass
@import "~@jswork/react-placeholder-image/dist/style.scss";// customize your styles:
$react-placeholder-image-options: ()
```
2. import js
```js
import React from 'react';
import PImg from '../../src/main';
import styled from 'styled-components';const Container = styled.div`
width: 80%;
margin: 30px auto 0;img {
margin: 20px auto;
vertical-align: middle;
display: block;
}
`;export default () => {
return (
);
};```
## preview
- https://afeiship.github.io/react-placeholder-image/## license
Code released under [the MIT license](https://github.com/afeiship/react-placeholder-image/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/react-placeholder-image
[version-url]: https://npmjs.org/package/@jswork/react-placeholder-image[license-image]: https://img.shields.io/npm/l/@jswork/react-placeholder-image
[license-url]: https://github.com/afeiship/react-placeholder-image/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-placeholder-image
[size-url]: https://github.com/afeiship/react-placeholder-image/blob/master/dist/react-placeholder-image.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/react-placeholder-image
[download-url]: https://www.npmjs.com/package/@jswork/react-placeholder-image