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

https://github.com/afeiship/react-backdrop

Backdrop for react.
https://github.com/afeiship/react-backdrop

backdrop mask overlay react

Last synced: 5 months ago
JSON representation

Backdrop for react.

Awesome Lists containing this project

README

          

# react-backdrop
> Drawer 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-backdrop
```

## usage
1. import css
```scss
@import "~@jswork/react-backdrop/dist/style.css";

// or use sass
@import "~@jswork/react-backdrop/dist/style.scss";
```
2. import js
```js
import { useState } from 'react';
import Backdrop from '@jswork/react-backdrop';
import './index.css';
import '@jswork/react-backdrop/dist/style.scss';

function App() {
const [visible, setVisible] = useState(false);
return (


react-backdrop


setVisible(false)} />

setVisible(true)}>
Open

setVisible(false)}>
Close



);
}

export default App;

```

## preview
- https://afeiship.github.io/react-backdrop/

## license
Code released under [the MIT license](https://github.com/afeiship/react-backdrop/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/react-backdrop
[version-url]: https://npmjs.org/package/@jswork/react-backdrop

[license-image]: https://img.shields.io/npm/l/@jswork/react-backdrop
[license-url]: https://github.com/afeiship/react-backdrop/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-backdrop
[size-url]: https://github.com/afeiship/react-backdrop/blob/master/dist/react-backdrop.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/react-backdrop
[download-url]: https://www.npmjs.com/package/@jswork/react-backdrop