diff --git a/.changeset/rude-keys-invite.md b/.changeset/rude-keys-invite.md new file mode 100644 index 0000000000..b0796ad451 --- /dev/null +++ b/.changeset/rude-keys-invite.md @@ -0,0 +1,5 @@ +--- +"@primer/view-components": patch +--- + +Fix use of removed slots API in docs. diff --git a/app/components/primer/beta/border_box.rb b/app/components/primer/beta/border_box.rb index 2d60a4838b..08c99120f4 100644 --- a/app/components/primer/beta/border_box.rb +++ b/app/components/primer/beta/border_box.rb @@ -26,7 +26,7 @@ class BorderBox < Primer::Component # # @param system_arguments [Hash] <%= link_to_system_arguments_docs %> # @accessibility - # When using header.title, the recommended tag is a heading tag, such as h1, h2, h3, etc. + # When using header.with_title, the recommended tag is a heading tag, such as h1, h2, h3, etc. renders_one :header, "Primer::Beta::BorderBox::Header" # Optional Body. @@ -72,8 +72,8 @@ class BorderBox < Primer::Component # @example Header with title, body, rows, and footer # <%= render(Primer::Beta::BorderBox.new) do |component| %> - # <% component.with_header do |h| %> - # <% h.title(tag: :h2) do %> + # <% component.with_header do |header| %> + # <% header.with_title(tag: :h2) do %> # Header # <% end %> # <% end %>