Skip to content

Instantly share code, notes, and snippets.

@jstejada
Last active October 7, 2015 00:08
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 jstejada/daac14db8d501ccfc223 to your computer and use it in GitHub Desktop.
Save jstejada/daac14db8d501ccfc223 to your computer and use it in GitHub Desktop.
ColorPicker react component
.pla-color-picker {
background: url("/images/color_picker.png");
background-size: 1.25em 1.25em;
height: 1.25em;
width: 1.25em;
cursor: pointer;
float: right;
}
React = require 'React'
R = React.DOM
ColorPicker = React.createClass(
render: ->
R.a
className: "pla-color-picker collapsed"
href: "##{@props.colorPaletteId}"
"data-toggle": "collapse"
"aria-expanded": "false"
"aria-controls": @props.colorPaletteId
)
module.exports = ColorPicker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment