1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { OverridableStringUnion } from '@mui/types';
|
4 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
5 | import { Theme } from '../styles';
|
6 | import { FormHelperTextClasses } from './formHelperTextClasses';
|
7 |
|
8 | export interface FormHelperTextPropsVariantOverrides {}
|
9 |
|
10 | export interface FormHelperTextOwnProps {
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 | children?: React.ReactNode;
|
17 | |
18 |
|
19 |
|
20 | classes?: Partial<FormHelperTextClasses>;
|
21 | |
22 |
|
23 |
|
24 | disabled?: boolean;
|
25 | |
26 |
|
27 |
|
28 | error?: boolean;
|
29 | |
30 |
|
31 |
|
32 | filled?: boolean;
|
33 | |
34 |
|
35 |
|
36 | focused?: boolean;
|
37 | |
38 |
|
39 |
|
40 |
|
41 | margin?: 'dense';
|
42 | |
43 |
|
44 |
|
45 | required?: boolean;
|
46 | |
47 |
|
48 |
|
49 | sx?: SxProps<Theme>;
|
50 | |
51 |
|
52 |
|
53 | variant?: OverridableStringUnion<
|
54 | 'standard' | 'outlined' | 'filled',
|
55 | FormHelperTextPropsVariantOverrides
|
56 | >;
|
57 | }
|
58 |
|
59 | export interface FormHelperTextTypeMap<
|
60 | AdditionalProps = {},
|
61 | RootComponent extends React.ElementType = 'p',
|
62 | > {
|
63 | props: AdditionalProps & FormHelperTextOwnProps;
|
64 | defaultComponent: RootComponent;
|
65 | }
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 | declare const FormHelperText: OverridableComponent<FormHelperTextTypeMap>;
|
77 |
|
78 | export type FormHelperTextProps<
|
79 | RootComponent extends React.ElementType = FormHelperTextTypeMap['defaultComponent'],
|
80 | AdditionalProps = {},
|
81 | > = OverrideProps<FormHelperTextTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
82 | component?: React.ElementType;
|
83 | };
|
84 |
|
85 | export default FormHelperText;
|