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.
27 lines
612 B
JavaScript
27 lines
612 B
JavaScript
8 years ago
|
import React from 'react'
|
||
|
|
||
|
export default (props) => (
|
||
8 years ago
|
<div onClick={props.onClick} className="toolbar-btn" style={Object.assign({
|
||
8 years ago
|
background: props.bg
|
||
|
}, props.style)}>
|
||
|
<span>{props.title}</span>
|
||
|
<style jsx>{`
|
||
|
div {
|
||
8 years ago
|
cursor: pointer;
|
||
8 years ago
|
height: 100%;
|
||
8 years ago
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
padding: 0 16px;
|
||
|
color: #000;
|
||
8 years ago
|
border: 0.5px solid #000;
|
||
8 years ago
|
border-radius: 3px;
|
||
|
}
|
||
|
div:last-of-type {
|
||
|
border-radius: 0px 3px 3px 0px;
|
||
|
border-left: 0px;
|
||
|
}
|
||
|
`}</style>
|
||
|
</div>
|
||
8 years ago
|
)
|