Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/OutlinedInput/OutlinedInput.d.ts 1.87 KB
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
  import * as React from 'react';
  import { SxProps } from '@mui/system';
  import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
  import { Theme } from "../styles/index.js";
  import { InternalStandardProps as StandardProps } from "../internal/index.js";
  import { InputBaseProps } from "../InputBase/index.js";
  import { OutlinedInputClasses } from "./outlinedInputClasses.js";
  interface OutlinedInputSlots {
    /**
     * The component that renders the notchedOutline slot.
     * @default NotchedOutline
     */
    notchedOutline: React.ElementType;
  }
  type OutlinedInputSlotsAndSlotProps = CreateSlotsAndSlotProps<OutlinedInputSlots, {
    notchedOutline: SlotProps<'fieldset', {}, OutlinedInputOwnerState>;
  }> & {
    slots?: InputBaseProps['slots'];
    slotProps?: InputBaseProps['slotProps'];
  };
  export interface OutlinedInputProps extends Omit<StandardProps<InputBaseProps>, 'slots' | 'slotProps'>, OutlinedInputSlotsAndSlotProps {
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<OutlinedInputClasses>;
    /**
     * The label of the `input`. It is only used for layout. The actual labelling
     * is handled by `InputLabel`.
     */
    label?: React.ReactNode;
    /**
     * If `true`, the outline is notched to accommodate the label.
     */
    notched?: boolean;
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
  }
  export interface OutlinedInputOwnerState extends Omit<OutlinedInputProps, 'slots' | 'slotProps'> {}
  
  /**
   *
   * Demos:
   *
   * - [Text Field](https://mui.com/material-ui/react-text-field/)
   *
   * API:
   *
   * - [OutlinedInput API](https://mui.com/material-ui/api/outlined-input/)
   * - inherits [InputBase API](https://mui.com/material-ui/api/input-base/)
   */
  declare const OutlinedInput: ((props: OutlinedInputProps) => React.JSX.Element) & {
    muiName: string;
  };
  export default OutlinedInput;