UNPKG

793 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3
4export 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
21export type FormControlLabelClassKey =
22 | 'root'
23 | 'labelPlacementStart'
24 | 'labelPlacementTop'
25 | 'labelPlacementBottom'
26 | 'disabled'
27 | 'label';
28
29declare const FormControlLabel: React.ComponentType<FormControlLabelProps>;
30
31export default FormControlLabel;