-
-
Save davo/6078d9a408a0f01734e84ba5687987e0 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' | |
interface Props { | |
color: string | |
} | |
export class componentName extends React.Component<Props> { | |
static defaultProps = { | |
width: 1600, | |
height: 1200, | |
color: '#e0f' | |
} | |
static propertyControls = { | |
color: { | |
type: ControlType.Color, | |
title: 'Color' | |
} | |
} | |
state = {} | |
render() { | |
const { color } = this.props | |
return ( | |
<Frame | |
style={{ | |
height: '100%', | |
width: '100%', | |
display: 'flex', | |
justifyContent: 'center', | |
alignItems: 'center', | |
backgroundColor: color | |
}} | |
/> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment