Permalink
Browse files

Add a simple ColorPickerButton

  • Loading branch information...
markerikson committed Jul 19, 2017
1 parent a035b81 commit ee3c0273c3e4284059584885328f65e86f1c73d4
Showing with 24 additions and 0 deletions.
  1. +24 −0 src/common/components/ColorPickerButton.jsx
@@ -0,0 +1,24 @@
import React from "react";
import {Button} from "semantic-ui-react";
const ColorPickerButton = ({value, onClick, disabled=false}) => {
return (
<Button
type="button"
style={{padding: "4px", margin: 0}}
disabled={disabled}
onClick={onClick}
>
<div
style={{
width : 30,
height : 15,
backgroundColor : value
}}
/>
</Button>
)
}
export default ColorPickerButton;

0 comments on commit ee3c027

Please sign in to comment.