File tree 2 files changed +26
-1
lines changed
2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1
- .eslintrc.js
1
+ .eslintrc.js
2
+ src /index.d.ts
Original file line number Diff line number Diff line change
1
+ import * as React from 'react' ;
2
+
3
+ export interface Props {
4
+ prefixCls ?: string ;
5
+ className ?: string ;
6
+ style ?: React . CSSProperties ;
7
+ name ?: string ;
8
+ id ?: string ;
9
+ type ?: string ;
10
+ defaultChecked ?: number | boolean ;
11
+ checked ?: number | boolean ;
12
+ disabled ?: boolean ;
13
+ onFocus ?: ( e : React . FocusEvent < HTMLInputElement > ) => void ;
14
+ onBlur ?: ( e : React . FocusEvent < HTMLInputElement > ) => void ;
15
+ onChange ?: ( e : Event ) => void ;
16
+ onClick ?: ( e : React . MouseEvent < HTMLInputElement > ) => void ;
17
+ tabIndex ?: string | number ;
18
+ readOnly ?: boolean ;
19
+ required ?: boolean ;
20
+ autoFocus ?: boolean ;
21
+ value ?: any ;
22
+ }
23
+
24
+ export default class CheckBox extends React . Component < Props > { }
You can’t perform that action at this time.
0 commit comments