1 | import * as React from 'react';
|
2 | import { StandardProps } from '..';
|
3 |
|
4 | export interface FormControlLabelProps
|
5 | extends StandardProps<
|
6 | React.LabelHTMLAttributes<HTMLLabelElement>,
|
7 | FormControlLabelClassKey,
|
8 | 'onChange'
|
9 | > {
|
10 | checked?: boolean;
|
11 | control: React.ReactElement;
|
12 | disabled?: boolean;
|
13 | inputRef?: React.Ref<any>;
|
14 | label: React.ReactNode;
|
15 | name?: string;
|
16 | onChange?: (event: React.ChangeEvent<{}>, checked: boolean) => void;
|
17 | labelPlacement?: 'end' | 'start' | 'top' | 'bottom';
|
18 | value?: unknown;
|
19 | }
|
20 |
|
21 | export type FormControlLabelClassKey =
|
22 | | 'root'
|
23 | | 'labelPlacementStart'
|
24 | | 'labelPlacementTop'
|
25 | | 'labelPlacementBottom'
|
26 | | 'disabled'
|
27 | | 'label';
|
28 |
|
29 | declare const FormControlLabel: React.ComponentType<FormControlLabelProps>;
|
30 |
|
31 | export default FormControlLabel;
|