$ gem install phlex-rails
$ rails g phlex:install
This changes a few things in your Rails project:
./config/application.rb../app/views and ./app/views/components.Reboot server to pick-up these changes!
Make sure you checkout the website, Phlex.fun for more examples and docs.