/
sweetebin
/
hackaton_26
Обзор
Документация
Войти
/
sweetebin
/
hackaton_26
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
web-form-project/node_modules/@mui/material/InputLabel/InputLabel.d.ts
90 строк
2 KB
AKorostelev
web form project added
28 июл 2026, 10:57
28 июл 2026, 10:57
4339e77
Код
Авторство
О чём код?
import * as React from 'react'; import { SxProps } from '@mui/system'; import { OverridableStringUnion } from '@mui/types'; import { FormLabelProps, ExtendFormLabelTypeMap } from '../FormLabel'; import { Theme } from '../styles'; import { InputLabelClasses } from './inputLabelClasses'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; 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 'normal' */ size?: OverridableStringUnion<'small' | 'normal', 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://v6.mui.com/material-ui/react-text-field/) * * API: * * - [InputLabel API](https://v6.mui.com/material-ui/api/input-label/) * - inherits [FormLabel API](https://v6.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;