fleet/frontend/components/buttons/Button/Button.jsx
Mike Stone 23ffa5be62 Query side panel (#269)
* QuerySidePanel component

* Adds all osquery table names to ace editor mode

* kolide theme for strings

* Detect OS from browser

* Show utility and specs availability as 'All Platforms'

* Show column description as alt text
2016-10-11 11:32:39 -04:00

34 lines
687 B
JavaScript

import React, { Component, PropTypes } from 'react';
import radium from 'radium';
import componentStyles from './styles';
class Button extends Component {
static propTypes = {
onClick: PropTypes.func,
style: PropTypes.object,
text: PropTypes.string,
type: PropTypes.string,
variant: PropTypes.string,
};
static defaultProps = {
style: {},
variant: 'default',
};
render () {
const { onClick, style, text, type, variant } = this.props;
return (
<button
onClick={onClick}
style={[componentStyles[variant], style]}
type={type}
>
{text}
</button>
);
}
}
export default radium(Button);