Initial release of base button
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
export function BaseButton({ onClick, children, style }) {
|
||||
const defaultStyle = {
|
||||
padding: '10px 20px',
|
||||
backgroundColor: '#0070f3',
|
||||
color: '#fff',
|
||||
border: 'none',
|
||||
borderRadius: '5px',
|
||||
cursor: 'pointer',
|
||||
...style
|
||||
};
|
||||
|
||||
return (
|
||||
<button style={defaultStyle} onClick={onClick}>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user