mirror of https://github.com/sgoudham/carbon.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
597 B
JavaScript
25 lines
597 B
JavaScript
import React from 'react'
|
|
import { COLORS } from '../lib/constants'
|
|
|
|
export default (props) => (
|
|
<div onClick={props.onClick} className="toolbar-btn" style={Object.assign({
|
|
background: COLORS.BLACK,
|
|
color: props.color,
|
|
border: `0.5px solid ${props.color}`
|
|
}, props.style)}>
|
|
<span>{props.title}</span>
|
|
<style jsx>{`
|
|
div {
|
|
cursor: pointer;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 16px;
|
|
border-radius: 3px;
|
|
user-select: none;
|
|
}
|
|
`}</style>
|
|
</div>
|
|
)
|