Skip to content

Commit

Permalink
Add a simple ColorPickerButton
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Nov 11, 2017
1 parent 9c331f5 commit 9e9c02f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 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 9e9c02f

Please sign in to comment.