1.2.8 • Published 7 years ago
react-motion-window v1.2.8
react-motion-window
window app using react & react-motion
This package is included in react-motion-components.
Install
npm install --save react-motion-window
Usage
import * as React from 'react';
import Window from 'react-motion-window';
export default class App extends Component {
render() {
return (
<div>
<div>
<button
onClick={() => {
this.window.addWindow();
}}
>
add window
</button>
</div>
<div>
<button
onClick={() => {
this.window.removeWindow();
}}
>
remove window
</button>
</div>
<Window
ref={window => (this.window = window)}
width={200}
height={200}
position="center"
direction="top"
titlebar={{
use: true,
title: 'test'
}}
>
test
</Window>
</div>
);
}
}
License
MIT © pjb0811
1.2.8
7 years ago
1.2.7
7 years ago
1.2.6
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.16
7 years ago
1.1.15
7 years ago
1.1.14
7 years ago
1.1.13
7 years ago
1.1.12
7 years ago
1.1.11
7 years ago
1.1.10
7 years ago
1.1.9
7 years ago
1.1.8
7 years ago
1.1.7
7 years ago
1.1.6
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago