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.
- Host: GitHub
- URL: https://github.com/afeiship/react-backdrop
- Owner: afeiship
- Created: 2016-12-10T14:45:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T13:05:59.000Z (almost 2 years ago)
- Last Synced: 2025-08-16T23:17:12.764Z (10 months ago)
- Topics: backdrop, mask, overlay, react
- Language: TypeScript
- Homepage: https://afeiship.github.io/react-backdrop/
- Size: 918 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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