Skip to content

Instantly share code, notes, and snippets.

@zachj0hnston
Last active October 19, 2018 20:26
Show Gist options
  • Save zachj0hnston/81ed78f8ae0bd2b76d3be14580e78c2b to your computer and use it in GitHub Desktop.
Save zachj0hnston/81ed78f8ae0bd2b76d3be14580e78c2b to your computer and use it in GitHub Desktop.
import * as React from "react";
import { Frame, PropertyControls, ControlType } from "framer";
export class componentName extends React.Component {
static defaultProps = {
width: 1600,
height: 1200,
color: "#e0f",
};
static propertyControls = {
color: {
type: ControlType.Color,
title: "Color",
},
}
state = {
};
render() {
return (
<div style={{
height: "100%",
width: "100%",
display: "flex",
justifyContent: "center",
alignItems: "center",
backgroundColor: this.props.color,
}}>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment