bc518174
王天杨
提交两个项目文件
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
import * as React from 'react';
import { SxProps } from '@mui/system';
import { OverridableStringUnion } from '@mui/types';
import { FormLabelProps, ExtendFormLabelTypeMap } from "../FormLabel/index.js";
import { Theme } from "../styles/index.js";
import { InputLabelClasses } from "./inputLabelClasses.js";
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
export interface InputLabelPropsSizeOverrides {}
export interface InputLabelOwnProps extends Pick<FormLabelProps, 'children'> {
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<InputLabelClasses>;
color?: FormLabelProps['color'];
/**
* If `true`, the transition animation is disabled.
* @default false
*/
disableAnimation?: boolean;
/**
* If `true`, the component is disabled.
*/
disabled?: boolean;
/**
* If `true`, the label is displayed in an error state.
*/
error?: boolean;
/**
* If `true`, the `input` of this label is focused.
*/
focused?: boolean;
/**
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
* FormControl.
*/
margin?: 'dense';
/**
* if `true`, the label will indicate that the `input` is required.
*/
required?: boolean;
/**
* If `true`, the label is shrunk.
*/
shrink?: boolean;
/**
* The size of the component.
* @default 'medium'
*/
size?: OverridableStringUnion<'small' | 'medium', InputLabelPropsSizeOverrides>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The variant to use.
*/
variant?: 'standard' | 'outlined' | 'filled';
}
export type InputLabelTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'label'> = ExtendFormLabelTypeMap<{
props: AdditionalProps & InputLabelOwnProps;
defaultComponent: RootComponent;
}>;
/**
*
* Demos:
*
* - [Text Field](https://mui.com/material-ui/react-text-field/)
*
* API:
*
* - [InputLabel API](https://mui.com/material-ui/api/input-label/)
* - inherits [FormLabel API](https://mui.com/material-ui/api/form-label/)
*/
declare const InputLabel: OverridableComponent<InputLabelTypeMap>;
export type InputLabelProps<RootComponent extends React.ElementType = InputLabelTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<InputLabelTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export default InputLabel;
|