mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-10 15:49:42 -06:00
Created the Button.jsx component
This commit is contained in:
11
web/src/common/components/Button/Button.jsx
Normal file
11
web/src/common/components/Button/Button.jsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import "./styles.sass";
|
||||
|
||||
export const Button = ({color, text, icon, onClick}) => {
|
||||
return (
|
||||
<button className={`btn btn-color-${color}`} onClick={onClick}>
|
||||
<FontAwesomeIcon icon={icon} />
|
||||
<h1>{text}</h1>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user