Helper hook to toggle classes on additional elements

Allows for simple customized extensions that respond to which variant is chosen.