UNPKG

856 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3import { InputBaseProps } from '../InputBase';
4
5export interface InputProps extends StandardProps<InputBaseProps, InputClassKey> {
6 /**
7 * If `true`, the input will not have an underline.
8 */
9 disableUnderline?: boolean;
10}
11
12export type InputClassKey =
13 | 'root'
14 | 'formControl'
15 | 'focused'
16 | 'disabled'
17 | 'colorSecondary'
18 | 'underline'
19 | 'error'
20 | 'marginDense'
21 | 'multiline'
22 | 'fullWidth'
23 | 'input'
24 | 'inputMarginDense'
25 | 'inputMultiline'
26 | 'inputTypeSearch';
27
28/**
29 *
30 * Demos:
31 *
32 * - [Text Fields](https://material-ui.com/components/text-fields/)
33 *
34 * API:
35 *
36 * - [Input API](https://material-ui.com/api/input/)
37 * - inherits [InputBase API](https://material-ui.com/api/input-base/)
38 */
39export default function Input(props: InputProps): JSX.Element;