1 | import * as React from 'react';
|
2 | import { StandardProps } from '..';
|
3 | import { IconButtonProps } from '../IconButton';
|
4 |
|
5 | export interface SwitchBaseProps
|
6 | extends StandardProps<IconButtonProps, SwitchBaseClassKey, 'onChange' | 'value'> {
|
7 | autoFocus?: boolean;
|
8 | checked?: boolean;
|
9 | checkedIcon: React.ReactNode;
|
10 | defaultChecked?: boolean;
|
11 | disabled?: boolean;
|
12 | disableRipple?: boolean;
|
13 | icon: React.ReactNode;
|
14 | inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
15 | inputRef?: React.Ref<any>;
|
16 | name?: string;
|
17 | onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
18 | readOnly?: boolean;
|
19 | required?: boolean;
|
20 | tabIndex?: number;
|
21 | value?: unknown;
|
22 | }
|
23 |
|
24 | export type SwitchBaseClassKey = 'root' | 'checked' | 'disabled' | 'input';
|
25 |
|
26 | declare const SwitchBase: React.ComponentType<SwitchBaseProps>;
|
27 |
|
28 | export default SwitchBase;
|