UNPKG

715 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3import { FormLabelProps } from '../FormLabel';
4
5export interface InputLabelProps extends StandardProps<FormLabelProps, InputLabelClassKey> {
6 disableAnimation?: boolean;
7 disabled?: boolean;
8 error?: boolean;
9 focused?: boolean;
10 margin?: 'dense';
11 required?: boolean;
12 shrink?: boolean;
13 variant?: 'standard' | 'outlined' | 'filled';
14}
15
16export type InputLabelClassKey =
17 | 'root'
18 | 'focused'
19 | 'disabled'
20 | 'error'
21 | 'required'
22 | 'asterisk'
23 | 'formControl'
24 | 'marginDense'
25 | 'shrink'
26 | 'animated'
27 | 'filled'
28 | 'outlined';
29
30declare const InputLabel: React.ComponentType<InputLabelProps>;
31
32export default InputLabel;