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.
carbon/components/button.js

27 lines
612 B
JavaScript

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