MVP Verson: 0.4.8 beta
Lang Icon
Toggle Icon
Input
Input content via mouse or keyboard.
Default
PreviewCode
Textarea
PreviewCode
Size
PreviewCode
Password
PreviewCode
Material
PreviewCode
Disabled
PreviewCode
Props
Input
PropTypeAccepted ValuesDescriptionDefault
sizestringsmall | medium | large | hugeFour styles are provided by default, and other styles can be customized using the "sx" prop.medium
sxobjectobjectInline styles for customizing the Input component. Note: Inline styles via the 'style' prop will override 'sx'.{}
typestringdefault | textarea | passwordSet the input field type by changing the 'type' property.default
maxlengthnumber-Set the maximum number of characters for the input field.524288
onChangefunction(e)-Callback triggered when the input field content changes.-
valueany-The initial value of the input field (controlled mode).-
defaultValueany-The initial value of the input field (uncontrolled mode).-
disabledbooleanbooleanWhether the input is disabled.false
placeholderstringstringPlaceholder text.-
classNamestring-Defines the custom CSS class name for the input field.-
MaterialInput
PropTypeAccepted ValuesDescriptionDefaultVersion
labelstringstringPlaceholder text.--
typestringstringInput type--
inputTextStylesobjectobjectCustomize the text style in the input box-0.3.2
inputFloatStylesobjectobjectCustomize the float text style in the input box-0.3.2