-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.__btn { | ||
cursor: pointer; | ||
font-weight: 600; | ||
font-size: 1.25rem; | ||
outline-offset: 1px; | ||
padding: 1.25rem 3rem; | ||
border-radius: 0.5rem; | ||
border: 1px solid #1a1a1a; | ||
outline: 1px solid transparent; | ||
transition: all 0.375s ease-in-out; | ||
} | ||
|
||
.__btn:hover, | ||
.__btn:focus { | ||
color: #fafafa; | ||
outline-offset: 1px; | ||
border: 1px solid #fafafa; | ||
background-color: #1a1a1a; | ||
outline: 1px solid #1a1a1a; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import OwnReact from "../../../lib/index"; | ||
import "./button.css"; | ||
|
||
const Button = (children) => { | ||
return <button>{children}</button>; | ||
const handleClick = () => { | ||
alert("Button clicked"); | ||
}; | ||
return <button className="__btn" onClick={() => handleClick()}>{children}</button>; | ||
}; | ||
|
||
export default Button; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters