Props
Attributes
- Graph
-
- Supertypes
-
trait PropTypesclass Objecttrait Matchableclass Any
Members list
Type members
Classlikes
The color of the component. It supports both default and custom theme colors, which can be added as shown in the palette customization guide. The prop defaults to the value ('primary'
) inherited from the parent FormControl component.
The color of the component. It supports both default and custom theme colors, which can be added as shown in the palette customization guide. The prop defaults to the value ('primary'
) inherited from the parent FormControl component.
Attributes
- Supertypes
-
class Prop[String]class Objecttrait Matchableclass Any
- Self type
-
color.type
If dense
, will adjust vertical spacing. This is normally obtained via context from FormControl. The prop defaults to the value ('none'
) inherited from the parent FormControl component.
If dense
, will adjust vertical spacing. This is normally obtained via context from FormControl. The prop defaults to the value ('none'
) inherited from the parent FormControl component.
Attributes
- Supertypes
-
class Prop[String]class Objecttrait Matchableclass Any
- Self type
-
margin.type
Value members
Concrete methods
Type of the input
element. It should be a valid HTML5 input type.
This prop helps users to fill forms faster, especially on mobile devices. The name can be confusing, as it's more like an autofill. You can learn more about it following the specification.
This prop helps users to fill forms faster, especially on mobile devices. The name can be confusing, as it's more like an autofill. You can learn more about it following the specification.
Attributes
If true
, the input
element is focused during the first mount.
If true
, the input
element is focused during the first mount.
Attributes
Override or extend the styles applied to the component.
Override or extend the styles applied to the component.
Attributes
The components used for each slot inside.
The components used for each slot inside.
This prop is an alias for the slots
prop. It's recommended to use the slots
prop instead.
Attributes
The extra props for the slot components. You can override the existing props or add new ones.
The extra props for the slot components. You can override the existing props or add new ones.
This prop is an alias for the slotProps
prop. It's recommended to use the slotProps
prop instead, as componentsProps
will be deprecated in the future.
Attributes
The default value. Use when the component is not controlled.
The default value. Use when the component is not controlled.
Attributes
If true
, the input will not have an underline.
If true
, the input will not have an underline.
Attributes
If true
, the component is disabled. The prop defaults to the value (false
) inherited from the parent FormControl component.
If true
, the component is disabled. The prop defaults to the value (false
) inherited from the parent FormControl component.
Attributes
End InputAdornment
for this component.
End InputAdornment
for this component.
Attributes
If true
, the input
will indicate an error. The prop defaults to the value (false
) inherited from the parent FormControl component.
If true
, the input
will indicate an error. The prop defaults to the value (false
) inherited from the parent FormControl component.
Attributes
If true
, the input
will take up the full width of its container.
If true
, the input
will take up the full width of its container.
Attributes
If true
, the label is hidden. This is used to increase density for a FilledInput
. Be sure to add aria-label
to the input
element.
If true
, the label is hidden. This is used to increase density for a FilledInput
. Be sure to add aria-label
to the input
element.
Attributes
The id of the input
element.
The id of the input
element.
Attributes
The component used for the input
element. Either a string to use a HTML element or a component.
The component used for the input
element. Either a string to use a HTML element or a component.
Attributes
Attributes applied to the input
element.
Pass a ref to the input
element.
Pass a ref to the input
element.
Attributes
Maximum number of rows to display when multiline option is set to true.
Maximum number of rows to display when multiline option is set to true.
Attributes
Minimum number of rows to display when multiline option is set to true.
Minimum number of rows to display when multiline option is set to true.
Attributes
If true
, a TextareaAutosize element is rendered.
Name attribute of the input
element.
Name attribute of the input
element.
Attributes
Callback fired when the value is changed.
Callback fired when the value is changed.
Value parameters
- {React.ChangeEvent<HTMLTextAreaElement
-
| HTMLInputElement>} event The event source of the callback. You can pull out the new value by accessing
event.target.value
(string).
Attributes
The short hint displayed in the input
before the user enters a value.
The short hint displayed in the input
before the user enters a value.
Attributes
It prevents the user from changing the value of the field (not from interacting with the field).
It prevents the user from changing the value of the field (not from interacting with the field).
Attributes
If true
, the input
element is required. The prop defaults to the value (false
) inherited from the parent FormControl component.
If true
, the input
element is required. The prop defaults to the value (false
) inherited from the parent FormControl component.
Attributes
Number of rows to display when multiline option is set to true.
Number of rows to display when multiline option is set to true.
Attributes
The extra props for the slot components. You can override the existing props or add new ones.
The extra props for the slot components. You can override the existing props or add new ones.
This prop is an alias for the componentsProps
prop, which will be deprecated in the future.
Attributes
The components used for each slot inside.
The components used for each slot inside.
This prop is an alias for the components
prop, which will be deprecated in the future.
Attributes
Start InputAdornment
for this component.
Start InputAdornment
for this component.
Attributes
The system prop that allows defining system overrides as well as additional CSS styles.
The system prop that allows defining system overrides as well as additional CSS styles.
Attributes
The value of the input
element, required for a controlled component.
The value of the input
element, required for a controlled component.
Attributes
Inherited methods
Attributes
- Inherited from:
- PropTypes
Inherited fields
Attributes
- Inherited from:
- PropTypes