app/components/lookbook/page_tabs/component.rb in lookbook-1.0.8 vs app/components/lookbook/page_tabs/component.rb in lookbook-1.1.0
- old
+ new
@@ -1,9 +1,9 @@
module Lookbook
class PageTabs::Component < Lookbook::BaseComponent
renders_many :tabs, ->(**attrs, &block) do
@tabs ||= []
- attrs[:content] = capture(&block)
+ attrs[:tab_content] = capture(&block)
attrs[:markdown] ||= @markdown
@tabs << attrs
end
def initialize(markdown: true, **html_attrs)