1 | import * as React from 'react';
|
2 | import { OUIAProps } from '../../helpers';
|
3 | export interface SwitchProps extends Omit<React.HTMLProps<HTMLInputElement>, 'type' | 'onChange' | 'disabled' | 'label'>, OUIAProps {
|
4 |
|
5 | id?: string;
|
6 |
|
7 | className?: string;
|
8 |
|
9 | label?: React.ReactNode;
|
10 |
|
11 | labelOff?: React.ReactNode;
|
12 |
|
13 | isChecked?: boolean;
|
14 |
|
15 | hasCheckIcon?: boolean;
|
16 |
|
17 | isDisabled?: boolean;
|
18 |
|
19 | onChange?: (checked: boolean, event: React.FormEvent<HTMLInputElement>) => void;
|
20 |
|
21 | 'aria-label'?: string;
|
22 |
|
23 | isReversed?: boolean;
|
24 | }
|
25 | export declare class Switch extends React.Component<SwitchProps & OUIAProps, {
|
26 | ouiaStateId: string;
|
27 | }> {
|
28 | static displayName: string;
|
29 | id: string;
|
30 | static defaultProps: SwitchProps;
|
31 | constructor(props: SwitchProps & OUIAProps);
|
32 | render(): JSX.Element;
|
33 | }
|
34 | //# sourceMappingURL=Switch.d.ts.map |
\ | No newline at end of file |