HotwiredComponent adds Hotwired centered generators for Github's ViewComponent utilizing
the side car method. Components generated using this gem will by convention also generate an
scss file and Stimulus controller.
Components are class namespaced by their name, and by default every component has a stimulus controller.
rails g hotwire_component:component My::Widget
Add this line to your application's Gemfile:
And then execute:
$ rails g hotwired_component:install
HotwiredComponent adds it's own form helper,
hw_form_for. This helper may be used
to create standardized forms that are already set up to be used with Hotwire and Stimulus.
The gem is available as open source under the terms of the MIT License.