Skip to content

Commit

Permalink
feat: add component button
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Mar 25, 2022
1 parent 5424bd1 commit 21598fd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/Button/Button.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.button {
width: 340px;
height: 56px;

background: var(--orange);
border-radius: 10px;
border: 0;
outline: none;

font-weight: bold;
font-size: 18px;

cursor: pointer;

&:hover {
filter: brightness(0.8);
transition: 0.4s;
}
}
10 changes: 10 additions & 0 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ButtonProps } from 'types/IComponents';

import styles from './Button.module.scss';
export function Button(props: ButtonProps) {
return (
<button type={props.type} className={styles.button} onClick={props.onClick}>
{props.children}
</button>
);
}

0 comments on commit 21598fd

Please sign in to comment.