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

https://github.com/pjb0811/react-motion-window

window app using react & react-motion
https://github.com/pjb0811/react-motion-window

react react-motion window

Last synced: 6 months ago
JSON representation

window app using react & react-motion

Awesome Lists containing this project

README

          

# react-motion-window

> window app using react & react-motion

[![NPM](https://img.shields.io/npm/v/react-motion-window.svg)](https://www.npmjs.com/package/react-motion-window) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

This package is included in [react-motion-components](https://github.com/pjb0811/react-motion-components).

## Install

```bash
npm install --save react-motion-window
```

## Usage

[demo](https://codesandbox.io/s/2062nnw20n)

```tsx
import * as React from 'react';

import Window from 'react-motion-window';

export default class App extends Component {
render() {
return (



{
this.window.addWindow();
}}
>
add window



{
this.window.removeWindow();
}}
>
remove window


(this.window = window)}
width={200}
height={200}
position="center"
direction="top"
titlebar={{
use: true,
title: 'test'
}}
>
test


);
}
}
```

## License

MIT © [pjb0811](https://github.com/pjb0811)