Skip to content

Instantly share code, notes, and snippets.

@thepost
Last active May 6, 2019 16:11
Show Gist options
  • Save thepost/00ac5cf2aac36a9fd51112ae841853c3 to your computer and use it in GitHub Desktop.
Save thepost/00ac5cf2aac36a9fd51112ae841853c3 to your computer and use it in GitHub Desktop.
const BoxRoot = styled.View<IBoxProps>`
width: ${props => props.size};
height: ${props => props.size};
padding: ${props => props.theme.lateralPadding || 0}px;
background-color: ${props => props.backgroundColor};
`;
BoxRoot.defaultProps = {
size: 200,
backgroundColor: 'transparent',
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment