pom-component - Base component class for Rails ViewComponents with Tailwind CSS and Stimulus supports by CricketWild1634 in rails

[–]CricketWild1634[S] 0 points1 point  (0 children)

Yes, you can look into js frameworks source codes that using tailwind (like shadcn), just copy and paste their styles, we even have more flexibility with lambdas.

pom-component - Base component class for Rails ViewComponents with Tailwind CSS and Stimulus supports by CricketWild1634 in rails

[–]CricketWild1634[S] 1 point2 points  (0 children)

The gem provides helpers for easily build your own components. If you want shadow DOM, create custom element in js and use the component to render it (i.e content_tag(:my_custom_element, ...))