The problem is that I can’t change the direction of the text inside the DatePicker Mui component.
An illustrative example is the set of the year should start from left to right, and it starts from right to left
I tried to write styles in the textfield, but it did not bring the expected result. The text was aligned to the right, but when writing the date it is still written from right to left
slotProps={{
textField: {
inputProps: {
style: { direction: 'ltr' }, // Устанавливаем направление текста слева направо
},
},
}}
New contributor
Sergey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.