jsketcher/modules/ui/components/controls/Button.jsx
2018-07-05 22:42:25 -07:00

18 lines
295 B
JavaScript

import React from 'react';
import ls from './Button.less'
import cx from 'classnames';
export default function Button({type, onClick, children}) {
return <button onClick={onClick} className={cx(ls[type], ls.button)}>{children}</button>
}
Button.defaultProps = {
type: 'neutral',
};