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.
36 lines
687 B
JavaScript
36 lines
687 B
JavaScript
import React from 'react'
|
|
import { COLORS } from '../lib/constants'
|
|
|
|
export default props => (
|
|
<button
|
|
onClick={props.onClick}
|
|
style={{
|
|
...props.style,
|
|
background: COLORS.BLACK,
|
|
color: props.color,
|
|
border: `1px solid ${props.color}`
|
|
}}
|
|
>
|
|
<span>{props.title}</span>
|
|
<style jsx>{`
|
|
button {
|
|
cursor: pointer;
|
|
outline: none;
|
|
height: 100%;
|
|
padding: 0 16px;
|
|
border-radius: 3px;
|
|
user-select: none;
|
|
}
|
|
|
|
button:hover {
|
|
background: ${COLORS.HOVER} !important;
|
|
}
|
|
|
|
button > span {
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
}
|
|
`}</style>
|
|
</button>
|
|
)
|