ActiveForm/ActiveField Error Class

I’ve looked through the docs, but I don’t see how to set a class on the form field or label when there’s an error. I can set a class on the input and label that’s always applied, but not one for only when there’s an error. Is it not possible to set an error class for the input and label in the ActiveForm config?

Everything I’ve done with activeForm already had the setting of the error class in the validators. So I’m not sure what/why you’re asking.