I'm building a new component from TextField and I need to apply the same style for text fields with the readOnly than disabled property.
So, I was trying to use the property className but it does not work.
// some logic here ..
<TextField
{...props}
className={readOnly ? 'Mui-disabled' : undefined}
/>
So, I also tried to use the classses prop, but I don't know how to get the current config from the disabled class.