The checkbox component should have a hidden input and a stimulus controller (or some magic) that can toggle the state to submit. The button element might actually make this work, I have to check with a backend Rails form. Submission. Would be cool to have a submit button and show a toast that echos back the state of the checkbox using hotwire.
The checkbox component should have a hidden input and a stimulus controller (or some magic) that can toggle the state to submit. The button element might actually make this work, I have to check with a backend Rails form. Submission. Would be cool to have a submit button and show a toast that echos back the state of the checkbox using hotwire.