Created
October 8, 2017 19:01
-
-
Save pablohpsilva/30bde985990509270a4ae16cae7cf499 to your computer and use it in GitHub Desktop.
InfernoJS toolbar component example using dynamicClasses
This file contains hidden or 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 getDynamicClasses from '#JS/dynamic-classes' | |
export default ({ children, fixed }) => { | |
return ( | |
<div | |
className={getDynamicClasses({ | |
'toolbar': true, | |
'toolbar-fixed': fixed | |
})}> | |
{ children } | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment