aviflombaum / shadcn-rails

https://shadcn.rails-components.com
MIT License
573 stars 35 forks source link

Checkbox should have hidden input #9

Open aviflombaum opened 1 year ago

aviflombaum commented 1 year ago

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.