Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I create a gem for my ViewComponents that include Stimulus?

Mark Stephenson asked in Gems / Libraries

Can anyone point me at a guide or tutorial that will help me built a gem that does the following:

  • Allows me to have my ViewComponents
  • Styled with Tailwind
  • Interaction with Stimulus controllers

The end goal is that I can use this gem in multiple products to have access to the consistent styles/design guide.

We've tried a few things and stimulus wasnt playing nice

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,796+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.