You are passing the active data as a prop and as the error message states you should not mutate/modify props.
You can create a data property that is set to the prop value
data: function () {
return {
button: {
active: this.active
}
}
}
Then anywhere you reference this.active change to this.button.active
computed: {
classes() {
return ['btn', this.button.active ? 'btn-primary' : 'btn-secondary'];
}
},
https://vuejs.org/v2/guide/components-props.html#One-Way-Data-Flow