aviflombaum / shadcn-rails

https://shadcn.rails-components.com
MIT License
476 stars 32 forks source link

Toggle needs to be wrapped for second data action #13

Open aviflombaum opened 11 months ago

aviflombaum commented 11 months ago

There's a good chance that you want to wrap the toggle element in some other element so that one of them can have space for an independent binding to a controller and an action. Otherwise you have to push a user provided action and controller into the data attribute of the toggle.