1.2.8 • Published 8 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-windowUsage
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
8 years ago
1.2.7
8 years ago
1.2.6
8 years ago
1.2.5
8 years ago
1.2.4
8 years ago
1.2.3
8 years ago
1.2.2
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.16
8 years ago
1.1.15
8 years ago
1.1.14
8 years ago
1.1.13
8 years ago
1.1.12
8 years ago
1.1.11
8 years ago
1.1.10
8 years ago
1.1.9
8 years ago
1.1.8
8 years ago
1.1.7
8 years ago
1.1.6
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago