How to wrap a Form Widget button in custom HTML and add classes

Hi,

I’m using the Form widget in Bricks and I want to customize the submit button. Specifically, I’d like to:

  • Wrap the button in a div elements to create a custom hover effect.
  • Add custom classes directly to the button itself.

Right now, the widget only outputs a plain and I can’t find a way to add wrappers or extra classes.

Is there a built-in way to:

  • Add custom HTML around the submit button?
  • Add custom classes to the button?

Or a recommended approach (e.g., using a filter, action, or JavaScript) without breaking form functionality?

Thanks in advance for your guidance!