@wix/design-system
Version:
@wix/design-system
23 lines • 1.08 kB
TypeScript
import React, { PureComponent } from 'react';
import { InjectedFocusableProps } from '../common/Focusable';
import { CheckboxProps } from '.';
/** a simple WixStyle checkbox */
export declare class Checkbox extends PureComponent<InjectedFocusableProps<CheckboxProps, HTMLDivElement>> {
static displayName: string;
static defaultProps: CheckboxProps;
_id: string;
checkboxRef: React.RefObject<HTMLDivElement>;
inputRef: React.RefObject<HTMLInputElement>;
constructor(props: InjectedFocusableProps<CheckboxProps, HTMLDivElement>);
focus: () => void;
_handleChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
_getDataAttributes: () => {
"data-check-type": "checked" | "unchecked" | "indeterminate";
"data-has-error": boolean | undefined;
"data-disabled": boolean | undefined;
};
render(): React.JSX.Element;
}
declare const _default: React.ComponentType<CheckboxProps & import("../common/Focusable").WithFocusableProps<HTMLDivElement>>;
export default _default;
//# sourceMappingURL=Checkbox.d.ts.map