Show code
Colors
Use the color
prop to change the color of the input.
Show code
Disabled
Add the disabled
prop to disable the input.
Show code
Sizes
Set the size
prop or set the fullWidth
prop to change the size of the input.
Show code
With Icons
You can add icons to the input using the iconStart
and iconEnd
props.
Show code
With Helper Text
Use the helperText
prop to add helper text to the input.
Show code
With Error
Use the error
prop to indicate an error state.
Show code
API
See documentation below for reference to all of the props, classes and CSS
variables (custom properties) available for <Input />
: