Created
September 19, 2018 19:32
-
-
Save rtablada/1c083d5b6c3cd0b5e19ba3ffd0b6c02f 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 makeStyle from 'ember-something-js-style-thing'; | |
import Component from '@glimmer/component'; | |
export default class MyComponent extends Component { | |
styles = makeStyle({ | |
title: { | |
margin: '1rem', | |
color: (component) => { | |
return component.isActive ? 'red' : 'black'; | |
} | |
}, | |
name: { | |
padding: '2rem' | |
} | |
}); | |
} |
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
.some-bound-unique-class-for-title { | |
margin: 1rem; | |
} | |
some-bound-unique-class-for-name { | |
padding: 2rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment