mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 18:02:50 +01:00
17 lines
265 B
JavaScript
17 lines
265 B
JavaScript
import React from 'react';
|
|
|
|
import cx from 'classnames';
|
|
|
|
export default function Button({type, onClick, className, ...props}) {
|
|
|
|
return <button onClick={onClick} className={cx(type, className)} {...props} />
|
|
|
|
}
|
|
|
|
Button.defaultProps = {
|
|
type: 'neutral',
|
|
};
|
|
|
|
|
|
|
|
|