I would like to create a dynamic :class or :style binding that uses data stored in an Alpine.js variable.
<div x-data="{ divClass: 'inner', color: 'red' }">
<div :class="${divClass}"
:style="background-color: ${color}"></div>
</div>
In the example above, I would like the divClass variable to output a dynamic class inner, and the color to output a dynamic style red — is it possible?