-
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
f618deb
commit 7b383b1
Showing
2 changed files
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { VFC } from 'react'; | ||
import { css } from '@emotion/react'; | ||
|
||
type Props = { | ||
label: string; | ||
}; | ||
|
||
const CheckBox: VFC<Props> = ({ label }) => { | ||
return ( | ||
<label css={checkBoxControl}> | ||
<input css={checkBox} type="checkbox" /> | ||
<span css={labelText}>{label}</span> | ||
</label> | ||
); | ||
}; | ||
|
||
const checkBoxControl = css` | ||
display: flex; | ||
align-items: center; | ||
`; | ||
|
||
const checkBox = css` | ||
width: 24px; | ||
height: 24px; | ||
`; | ||
|
||
const labelText = css` | ||
margin-left: 8px; | ||
font-size: 24px; | ||
`; | ||
|
||
export default CheckBox; |
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,3 @@ | ||
import CheckBox from '@/components/common/CheckBox/CheckBox'; | ||
|
||
export { CheckBox }; |