lib/lookbook/helpers/ui_elements_helper.rb in lookbook-2.1.0 vs lib/lookbook/helpers/ui_elements_helper.rb in lookbook-2.1.1

- old
+ new

@@ -15,12 +15,12 @@ # <%= icon :trash %> # <%= icon :camera, size: 6, style: "color: red;" %> # # @param name [Symbol, String] Name of the icon # @param opts [Hash] Options hash - def icon(name, **) - lookbook_render(:icon, name: name, **) + def icon(name, **opts) + lookbook_render(:icon, name: name, **opts) end # Display a syntax-highlighted block of code. # # An alternative to using markdown code blocks for templates that have @@ -33,16 +33,16 @@ opts[:language] ||= language lookbook_render :code, **opts, &block end # @api private - def prose(**, &block) - lookbook_render(:prose, **, &block) + def prose(**opts, &block) + lookbook_render(:prose, **opts, &block) end # @api private - def lookbook_tag(tag = :div, **, &block) - lookbook_render(:tag, tag: tag, **, &block) + def lookbook_tag(tag = :div, **attrs, &block) + lookbook_render(:tag, tag: tag, **attrs, &block) end # @api private def lookbook_render(ref, **attrs, &block) comp = if ref.is_a? ViewComponent::Base