InputDecoration

Register on Lenra

Properties

AttributeDescriptionType
alignLabelWithHintWhether to align the label with the hint or not. Defaults to false.boolean
borderThe border to display around the input. Will render a border by default when border is null.defs/inputBorder.schema.json
constraintsThe constraints to be applied to the input.defs/boxConstraints.schema.json
contentPaddingThe padding to be applied to the input.defs/padding.schema.json
countercomponent
counterStyleThe style use for the counterText.defs/textStyle.schema.json
counterTextThe text to place below the line as a character counter.string
disabledBorderThe border to display when the input is disabled and not showing an error.defs/inputBorder.schema.json
enabledWhether the input is enabled or disabled.boolean
enabledBorderThe border to display when the input is enabled and not showing an error.defs/inputBorder.schema.json
errorBorderThe border to display when the input has an error and does not have the focus.defs/inputBorder.schema.json
errorMaxLinesThe maximum number of lines the error text can use.integer
errorStyleThe style to use for the error text.defs/textStyle.schema.json
errorTextThe error text to display when the input has an error.string
fillColorThe fill color of the input.defs/color.schema.json
filledWhether the input is filled with fillColor.boolean
floatingLabelBehaviorDefines how the floating label should be displayed.defs/floatingLabelBehavior.schema.json
floatingLabelStyleThe style to use for the floating label.defs/textStyle.schema.json
focusColorThe color to use when the input is focused.defs/color.schema.json
focusedBorderThe border to display when the input has the focus.defs/inputBorder.schema.json
focusedErrorBorderThe border to display when the input has the focus and has an error.defs/inputBorder.schema.json
helperMaxLinesThe maximum number of lines the helper text can use.integer
helperStyleThe style to use for the helper text.defs/textStyle.schema.json
helperTextThe helper text to display.string
hintMaxLinesThe maximum number of lines the hint text can use.integer
hintStyleThe style to use for the hint text.defs/textStyle.schema.json
hintTextThe hint text to display.string
hintTextDirectionThe direction of the hint text.defs/textDirection.schema.json
hoverColorThe color to use when the input is hovered.defs/color.schema.json
iconcomponent
iconColorThe color for the icondefs/color.schema.json
isCollapsedWhether the decoration is the same size as the input field.boolean
isDenseWhether the decoration is dense.boolean
labelcomponent
labelStyleThe style to use for the label.defs/textStyle.schema.json
labelTextThe text that describes the input field.string
prefixcomponent
prefixIconcomponent
prefixIconColorthe color of the prefixIcondefs/color.schema.json
prefixIconConstraintsThe constraints for the prefixIcon.defs/boxConstraints.schema.json
prefixStyleThe style to use for the prefixText.defs/textStyle.schema.json
prefixTextThe text to display before the input.string
semanticCounterTextThe semantic label for the counterText.string
suffixcomponent
suffixIconcomponent
suffixIconColorthe color of the sufficIcondefs/color.schema.json
suffixIconConstraintsThe constraints for the suffixIcon.defs/boxConstraints.schema.json
suffixStyleThe style to use for the suffixText.defs/textStyle.schema.json
suffixTextThe text to display after the input.string