Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit27324bc

Browse files
committed
use default checkbox
1 parente3f7a84 commit27324bc

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed
Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
import*asReactfrom'react'
2-
import{css,jsx}from'@emotion/core'
3-
4-
conststyles={
5-
box:{
6-
display:'flex',
7-
alignItems:'center',
8-
justifyContent:'center',
9-
},
10-
input:{
11-
border:'1px solid black',
12-
},
13-
loading:{
14-
backgroundColor:'red',
15-
},
16-
}
2+
import{CheckboxasAlifdCheckbox}from'@alifd/next'
173

184
interfaceProps{
195
status:'COMPLETE'|'INCOMPLETE'|'ACTIVE'
@@ -26,13 +12,7 @@ const Checkbox = (props: Props) => {
2612

2713
constchecked=props.status==='COMPLETE'
2814

29-
return(
30-
<divcss={styles.box}>
31-
<label>
32-
<inputcss={styles.input}type="checkbox"checked={checked}onChange={onChange}/>
33-
</label>
34-
</div>
35-
)
15+
return<AlifdCheckboxchecked={checked}onChange={onChange}/>
3616
}
3717

3818
exportdefaultCheckbox

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp