mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
17 lines
271 B
JavaScript
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',
|
|
};
|
|
|
|
|
|
|
|
|