UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

29 lines (28 loc) 1.02 kB
import { BaseComponent } from '../../Utilities'; import { ICheckbox, ICheckboxProps } from './Checkbox.Props'; export interface ICheckboxState { /** Is true when Uncontrolled control is checked. */ isChecked?: boolean; } export declare class Checkbox extends BaseComponent<ICheckboxProps, ICheckboxState> implements ICheckbox { static defaultProps: ICheckboxProps; private _checkBox; private _id; /** * Initialize a new instance of the TopHeaderV2 * @param props Props for the component * @param context Context or initial state for the base component. */ constructor(props: ICheckboxProps, context?: any); componentWillReceiveProps(newProps: ICheckboxProps): void; /** * Render the Checkbox based on passed props */ render(): JSX.Element; readonly checked: boolean; focus(): void; private _onFocus(ev); private _onBlur(ev); private _onClick(ev); private _getClassNames(styles, className, disabled, isChecked, isReversed); }