CodeAI

Field Wrapper

Generic container that pairs any input with a label and helper text, including validation messaging for errors and warnings.

Appearance

Content

State

Props — FieldWrapper
View MUI docs
PropTypeDescription
size"large" | "medium" | "small" | "extraSmall"Label and helper type scale.
sentiment"default" | "success" | "warning" | "error"Validation tone for label and helper.
labelReactNodeField label above the control.
helperTextReactNodeHelper or validation message below.
helperIconNameFaIconNameOptional icon beside helper text.
showHelperbooleanShow helper row when helperText is set.
childrenReactNodeThe input control to wrap.
requiredbooleanAppends * after the label (same type style, no gap).
disabledbooleanMutes label, helper, and icon.
htmlForstringAssociates label with control id.