Last active
October 19, 2018 20:26
-
-
Save zachj0hnston/81ed78f8ae0bd2b76d3be14580e78c2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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