frc-ui
Version:
React Web UI
27 lines (26 loc) • 682 B
TypeScript
import React, { CSSProperties } from 'react';
interface Props {
checked: boolean;
style?: CSSProperties;
className?: string;
prefix?: string;
disabled?: boolean;
onChange?: Function;
children?: any;
}
interface State {
value: boolean;
}
declare class Checkbox extends React.PureComponent<Props, State> {
static defaultProps: {
checked: boolean;
style: {};
disabled: boolean;
prefix: string;
};
constructor(props: Props);
componentWillReceiveProps(nextProps: Props): void;
onClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
render(): JSX.Element;
}
export default Checkbox;