With js classes
Use js-
prefixed classes only as interaction hooks – to query and operate on elements via JavaScript
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/button", {
text: "Button",
classes: "js-selector-1 js-selector-2"
} %>