Skip to content

Commit

Permalink
Create Button.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 7, 2024
1 parent ba471ab commit ccbeb76
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions projects/PiWalletBot/client/components/Button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from 'react';
import styled from 'styled-components';

const ButtonContainer = styled.button`
background-color: #4CAF50;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
&:hover {
background-color: #3e8e41;
}
`;

const Button = ({ children, onClick, disabled }) => {
return (
<ButtonContainer onClick={onClick} disabled={disabled}>
{children}
</ButtonContainer>
);
};

export default Button;

0 comments on commit ccbeb76

Please sign in to comment.