Adding additional parameters to a button configuration

When I try to add attributes to a button card in the front end I get an error saying it’s not allowed.

Where can I do this since I can’t find the button config in any of the files on the server?

things like changing the color when the button state is off or on?