UNPKG

643 BTypeScriptView Raw
1import * as React from 'react';
2import './style.scss';
3import { CheckboxProps } from './interface';
4export default class Checkbox extends React.PureComponent<CheckboxProps, any> {
5 static defaultProps: {
6 disabled: boolean;
7 defaultChecked: boolean;
8 label: string;
9 tipsType: string;
10 fontSize: string;
11 textColor: string;
12 };
13 constructor(props: CheckboxProps);
14 private inputRef;
15 private txtRef;
16 private containerRef;
17 componentWillReceiveProps(nextProps: CheckboxProps): void;
18 onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
19 render(): JSX.Element;
20}