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

- old
+ new

@@ -12,9 +12,10 @@ " border border-input bg-background hover:bg-accent hover:text-accent-foreground" when :ghost " hover:bg-accent hover:text-accent-foreground " end button_classes << " #{varianet_classes} #{options[:class]}" + button_classes = tw(button_classes) text = label if label.present? text = capture(&block) if block render "components/ui/button", text:, button_classes:, as:, href:, data:, **options end end