UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

37 lines (36 loc) 1.16 kB
/// <reference types="react" /> import * as React from 'react'; import CheckboxGroup, { CheckboxGroupContext } from './Group'; export interface AbstractCheckboxProps { prefixCls?: string; className?: string; defaultChecked?: boolean; checked?: boolean; style?: React.CSSProperties; disabled?: boolean; onChange?: React.ChangeEventHandler<HTMLInputElement>; onMouseEnter?: React.MouseEventHandler<any>; onMouseLeave?: React.MouseEventHandler<any>; value?: any; name?: string; children?: React.ReactNode; } export interface CheckboxProps extends AbstractCheckboxProps { indeterminate?: boolean; } export default class Checkbox extends React.Component<CheckboxProps, {}> { static Group: typeof CheckboxGroup; static defaultProps: { prefixCls: string; indeterminate: boolean; }; static contextTypes: { checkboxGroup: any; }; private rcCheckbox; shouldComponentUpdate(nextProps: CheckboxProps, nextState: {}, nextContext: CheckboxGroupContext): boolean; focus(): void; blur(): void; saveCheckbox: (node: any) => void; render(): JSX.Element; }