Optional
autoIf true, the input element will be focused during the first mount. Use with caution as it can cause accessibility issues.
Optional
calendarAria label for calendar button.
Optional
childrenOptional
classOptional CSS class name.
Optional
colorThe color of the component. It supports those theme colors that make sense for this component.
Optional
customUsed for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".
Optional
customUse this if you want to bypasss internal focus handling
Optional
customTranslation object used for screen reader texts.
Optional
defaultThe default value of the input element.
Optional
disabledIf true, the component is disabled.
Optional
endPlace an icon to end the text field with
Optional
errorIndicates if the component is in an error state, applying error-specific styling for validation feedback.
Optional
errorHelper text message that will be displayed on error.
Optional
FormProps applied to the FormHelperText element.
Optional
fullIf true, the input will take up the full width of its container.
Optional
helperThe helper text content.
The id of the input element. Use this prop to make label and helperText accessible for screen readers. This is mandatory for WCAG 2.1 compliance.
Optional
InputProps applied to the InputLabel element.
Optional
inputAttributes applied to the input element.
Optional
InputProps applied to the Input element. Depending on the variant prop value, it will be a FilledInput, OutlinedInput, or Input component.
Optional
inputref attribute that will be set on the input element
Optional
isDetermines if the calendar is open.
Optional
isIf true, a loading skeleton will be rendered instead of the component.
Optional
isSet this to true if the component is used as search field.
Optional
labelThe label content.
Language used for localization and date formatting.
Optional
marginIf dense or normal, will adjust vertical spacing of this and contained components.
Optional
maxDisable all dates after this. Expected in 'yyyy-MM-dd' format.
Optional
maxMaximum number of rows to display when multiline option is set to true.
Optional
minDisable all dates before this. Expected in 'yyyy-MM-dd' format.
Optional
minMinimum number of rows to display when multiline option is set to true.
Optional
multilineIf true, a textarea element will be rendered instead of an input.
Optional
numericIf the input is used for numeric data. Displays numeric keyboard on mobile devices.
Optional
onCallback that is fired when input value passes validation
Optional
onCallback when field changes.
Optional
onClick listener for the text field wrapper. IMPORTANT! Only use in special circumstances, e.g. in TravellerField component
Optional
onCallback when field is focused.
Optional
onOptional
onOptional
onOptional
onOptional
onFunction to run on open calendar button.
Optional
placeholderThe short hint displayed in the input before the user enters a value.
Optional
requiredIf true, the label is displayed as required and the input element` will be required.
Optional
roundedMakes the input rounded
Optional
rowsNumber of rows to display when multiline option is set to true.
Optional
selectRender a Select element while passing the Input element to Select as input parameter. If this option is set you must pass the options of the select as children.
Optional
SelectProps applied to the Select element.
Optional
showDetermines whether to display the Calendar IconButton within the DateField.
Optional
skeletonCustom styles for Skeleton.
Optional
startPlace an icon to start the text field with
Optional
sxThe system prop that allows defining system overrides as well as additional CSS styles.
Optional
timeSet timezone for the DateField
Optional
translationProvide local translations to be used in TextField
Optional
typeType of the input element. It should be a valid HTML5 input type.
Optional
validIf true, a green checkmark icon will be displayed inside the text field.
DateField value.
Optional
variantThe variant to use.
TODO: Use explicit types via HTMLInputElement["autocomplete"] after upgrading to Typescript 5.1