Can you add a custom css class to a form component (like a toggle?)

I have a form inside a grid that all the toggle buttons are aligned to the top - I'd like to have the toggle compnent align vertically with textinput elements in the same row.

Is this possible?
Solution
->extraAttributes(['class' => 'custom_css'])
->extraInputAttributes(['class' => 'custom_css'])
Was this page helpful?