An open API service indexing awesome lists of open source software.

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.

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