Input.InputField
View Source
The base component used in Input as well as Input.Inline and Combobox.Input. Provides a clean input base to build on top of.
Props
Accepts Box props.
autoWidth
boolean | number | stringSets the input’s width to the exact size of the text plus padding and cursor. Allows a string to be passed for measuring if input value is different from displayed value.
autoWidthType
'width' | 'basis' | 'both'Determines how the size is applied. Either through width or flexBasis.
highlightOnInteraction
booleanForces the input text to stay fully selected while interacting with it.
innerRef
anyGain access to the internal ref
placeholderColor
stringEasily set the placeholder color of the input.
size
'xs' | 'sm' | 'md' | 'lg' | 'xl'Size of the input font-size, and line-height. Based on theming sizes.