Add configuration to add class globally to inputs.

Closes #316