app/helpers/components_helper.rb in shadcn-ui-0.0.10 vs app/helpers/components_helper.rb in shadcn-ui-0.0.12

- old
+ new

@@ -1,9 +1,9 @@ require "tailwind_merge" module ComponentsHelper - def tw(classes) - TailwindMerge::Merger.new.merge(classes) + def tw(*classes) + TailwindMerge::Merger.new.merge(classes.join(" ")) end PRIMARY_CLASSES = " bg-primary text-primary-foreground hover:bg-primary/80 " SECONDARY_CLASSES = " bg-secondary text-secondary-foreground hover:bg-secondary/80 " OUTLINE_CLASSES = " border border-input bg-background hover:bg-accent hover:text-accent-foreground "