Skip to content

Instantly share code, notes, and snippets.

@pablohpsilva
Created October 8, 2017 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablohpsilva/30bde985990509270a4ae16cae7cf499 to your computer and use it in GitHub Desktop.
Save pablohpsilva/30bde985990509270a4ae16cae7cf499 to your computer and use it in GitHub Desktop.
InfernoJS toolbar component example using dynamicClasses
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