Skip to content

Instantly share code, notes, and snippets.

@l0gicgate
Forked from anonymous/PaperPanel.js
Last active January 9, 2018 18:06
Show Gist options
  • Save l0gicgate/8a5b808bc6943ebf9917ac7064797b03 to your computer and use it in GitHub Desktop.
Save l0gicgate/8a5b808bc6943ebf9917ac7064797b03 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
const panelStyle = {
width: '400px',
marginLeft: '42%',
marginRight: '50%',
}
class PaperPanel extends Component {
render() {
return (
<Paper style={panelStyle} zDepth={2}>
{this.props.children}
</Paper>
)
}
}
export default PaperPanel;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment