FormsTextInput
TextInput
A styled single-line input element for free-form text.
TextInputProps
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
hideInvalidAdornment | boolean | — | — | Hide the invalid adornment in cases where TextInput is overlaid as a toggle on top of another input with an adornment such as DatePicker. |
invalid | boolean | — | — | — |
onChange | NonNullable<InputProps['onChange']> | Yes | — | — |
size | InputSizeTypexsmall|small|medium|large | — | medium | — |
type | ValidTypeemail|number|password|search|tel|text|url | — | text | — |
value | NonNullable<InputProps['value']> | Yes | — | — |
Also accepts Omit<InputProps, 'onChange' | 'type' | 'size' | 'value'> | ||||
InputBaseProps
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
focusRing | normal|bold | — | — | — |
shape | InputShapeTypesquare|round | Yes | — | — |
size | InputSizeTypexsmall|small|medium|large | Yes | — | — |