Last active
August 17, 2019 21:52
-
-
Save esr360/edbf4681c32a6bed26312a263c5a7f71 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
const styles = ({ props, state, context }) => ({ | |
display: 'block', | |
fontSize: props.large ? '18px' : '12px', | |
...(context.grid && { | |
display: 'inline-block', | |
border: '1px solid' | |
}), | |
heading: { | |
fontWeight: 'bold', | |
color: 'red' | |
}, | |
content: { | |
padding: '1em', | |
display: state.isActive ? 'block' : 'none' | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment