Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/FormControl/FormControlContext.d.ts 698 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  import * as React from 'react';
  import type { FormControlProps } from "./FormControl.js";
  type ContextFromPropsKey = 'color' | 'disabled' | 'error' | 'fullWidth' | 'hiddenLabel' | 'margin' | 'onBlur' | 'onFocus' | 'required' | 'size' | 'variant';
  export interface FormControlState extends Pick<FormControlProps, ContextFromPropsKey> {
    adornedStart: boolean;
    filled: boolean;
    focused: boolean;
    onEmpty: () => void;
    onFilled: () => void;
    registerEffect: () => void;
    setAdornedStart: React.Dispatch<React.SetStateAction<boolean>>;
  }
  /**
   * @ignore - internal component.
   */
  declare const FormControlContext: React.Context<FormControlState | undefined>;
  export default FormControlContext;