-
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.
- Loading branch information
1 parent
17b8dd9
commit 358d182
Showing
5 changed files
with
99 additions
and
42 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,26 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const StyledButton = styled.button` | ||
padding: 0.5rem; | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
border: 1px solid currentColor; | ||
line-height: 1; | ||
&:disabled { | ||
color: gray; | ||
} | ||
`; | ||
|
||
export function Button({ | ||
children, | ||
...props | ||
}: React.JSX.IntrinsicElements['button']) { | ||
return ( | ||
<StyledButton {...props}> | ||
<span>{children}</span> | ||
</StyledButton> | ||
); | ||
} |
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,22 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const StyledInput = styled.input` | ||
padding: 0.5rem 0.25rem; | ||
display: inline-block; | ||
justify-content: center; | ||
align-items: center; | ||
border-bottom: 1px solid currentColor; | ||
line-height: 1; | ||
&:disabled { | ||
color: gray; | ||
} | ||
`; | ||
|
||
export function Input({ | ||
children, | ||
...props | ||
}: React.JSX.IntrinsicElements['input']) { | ||
return <StyledInput {...props} />; | ||
} |
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