UNPKG

1.53 kBTypeScriptView Raw
1import * as React from 'react';
2import { PickOptional } from '../../helpers/typeUtils';
3import { OUIAProps } from '../../helpers';
4export interface DropdownToggleCheckboxProps extends Omit<React.HTMLProps<HTMLInputElement>, 'type' | 'onChange' | 'disabled' | 'checked'>, OUIAProps {
5 /** Additional classes added to the DropdownToggleCheckbox */
6 className?: string;
7 /** Flag to show if the checkbox selection is valid or invalid */
8 isValid?: boolean;
9 /** Flag to show if the checkbox is disabled */
10 isDisabled?: boolean;
11 /** Flag to show if the checkbox is checked */
12 isChecked?: boolean | null;
13 /** Alternate Flag to show if the checkbox is checked */
14 checked?: boolean | null;
15 /** A callback for when the checkbox selection changes */
16 onChange?: (checked: boolean, event: React.FormEvent<HTMLInputElement>) => void;
17 /** Element to be rendered inside the <span> */
18 children?: React.ReactNode;
19 /** Id of the checkbox */
20 id: string;
21 /** Aria-label of the checkbox */
22 'aria-label': string;
23}
24export declare class DropdownToggleCheckbox extends React.Component<DropdownToggleCheckboxProps, {
25 ouiaStateId: string;
26}> {
27 static displayName: string;
28 static defaultProps: PickOptional<DropdownToggleCheckboxProps>;
29 constructor(props: DropdownToggleCheckboxProps);
30 handleChange: (event: React.FormEvent<HTMLInputElement>) => void;
31 calculateChecked: () => boolean;
32 render(): JSX.Element;
33}
34//# sourceMappingURL=DropdownToggleCheckbox.d.ts.map
\No newline at end of file