1 | import * as React from 'react';
|
2 | import { PickOptional } from '../../helpers/typeUtils';
|
3 | import { OUIAProps } from '../../helpers';
|
4 | export interface CheckboxProps extends Omit<React.HTMLProps<HTMLInputElement>, 'type' | 'onChange' | 'disabled' | 'label'>, OUIAProps {
|
5 |
|
6 | className?: string;
|
7 |
|
8 | isValid?: boolean;
|
9 |
|
10 | isDisabled?: boolean;
|
11 |
|
12 | isChecked?: boolean | null;
|
13 | checked?: boolean;
|
14 |
|
15 | onChange?: (checked: boolean, event: React.FormEvent<HTMLInputElement>) => void;
|
16 |
|
17 | label?: React.ReactNode;
|
18 |
|
19 | id: string;
|
20 |
|
21 | 'aria-label'?: string;
|
22 |
|
23 | description?: React.ReactNode;
|
24 |
|
25 | body?: React.ReactNode;
|
26 | }
|
27 | interface CheckboxState {
|
28 | ouiaStateId: string;
|
29 | }
|
30 | export declare class Checkbox extends React.Component<CheckboxProps, CheckboxState> {
|
31 | static displayName: string;
|
32 | static defaultProps: PickOptional<CheckboxProps>;
|
33 | constructor(props: any);
|
34 | private handleChange;
|
35 | render(): JSX.Element;
|
36 | }
|
37 | export {};
|
38 |
|
\ | No newline at end of file |