https://github.com/afeiship/react-full-image
Full page background image for react.
https://github.com/afeiship/react-full-image
full image react
Last synced: 2 months ago
JSON representation
Full page background image for react.
- Host: GitHub
- URL: https://github.com/afeiship/react-full-image
- Owner: afeiship
- License: mit
- Created: 2018-01-09T02:49:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-16T00:09:22.000Z (almost 3 years ago)
- Last Synced: 2025-09-16T10:26:30.302Z (10 months ago)
- Topics: full, image, react
- Language: JavaScript
- Size: 1.94 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# react-full-image
> Full page background image for react.
[![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-full-image
```
## properties
[object Promise]
## usage
1. import css
```scss
@import "~@jswork/react-full-image/dist/style.css";
// or use sass
@import "~@jswork/react-full-image/dist/style.scss";
// customize your styles:
$react-full-image-options: ()
```
2. import js
```js
import ReactDemokit from '@jswork/react-demokit';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactFullImage from '@jswork/react-full-image';
import './assets/style.scss';
import '@jswork/next-sample';
const images = [
'bg-2.jpg',
'bg.jpg',
'welcome_bg.2233ee0f.png',
'yuanhua1.jpg',
'alo7.png'
];
class App extends React.Component {
render() {
const item = nx.sample(images);
console.log(item);
return (
);
}
}
ReactDOM.render(, document.getElementById('app'));
```
## documentation
- https://afeiship.github.io/react-full-image/
## license
Code released under [the MIT license](https://github.com/afeiship/react-full-image/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/react-full-image
[version-url]: https://npmjs.org/package/@jswork/react-full-image
[license-image]: https://img.shields.io/npm/l/@jswork/react-full-image
[license-url]: https://github.com/afeiship/react-full-image/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-full-image
[size-url]: https://github.com/afeiship/react-full-image/blob/master/dist/react-full-image.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/react-full-image
[download-url]: https://www.npmjs.com/package/@jswork/react-full-image