Skip to main content

Function: TextFieldControl()

TextFieldControl(props): Element

Defined in: composites/TextField/TextField.tsx:157

The control slot of a TextField — since forms item H, the split shape: a painted frame hosting a borderless input, the same anatomy the rest of the family (SearchField, NumberField, ComboBox) already had. The conversion is what gives the field a lawful home for in-box adornments — the validation glyph today, prefix/suffix when a consumer pulls them — instead of the reserved-padding-and-absolute-positioning hack item D deleted from SearchField. data-part="control" stays on the element the user types into (ADR-022).

Parameters

ParameterType
propsTextFieldControlProps

Returns

Element