jsketcher/modules/ui/components/ToolButton.jsx
2018-11-26 21:08:11 -08:00

7 lines
283 B
JavaScript

import React from 'react';
import ls from './ToolButton.less';
import cx from 'classnames';
export default function ToolButton({pressed, type, className, ...props}) {
return <button tabIndex="-1" className={cx(ls.root, ls[type], pressed && ls.pressed, className)} {...props}/>;
}