jsketcher/modules/ui/components/controls/Button.jsx
2020-03-09 23:46:16 -07:00

17 lines
271 B
JavaScript

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