react-beautiful-dnd
Version:
Beautiful, accessible drag and drop for lists with React.js
21 lines (18 loc) • 357 B
Flow
// @flow
import React, { PureComponent } from 'react';
export default class Placeholder extends PureComponent {
props: {|
height: number,
width: number,
|}
render() {
const style = {
width: this.props.width,
height: this.props.height,
pointerEvents: 'none',
};
return (
<div style={style} />
);
}
}