ViewComponent has a pattern where a slot can be set including the content for the slot within a <% ... %> tag:
<%= render BlogComponent.new do |component| %>
<% component.with_header(classes: "title").with_content("My blog") %>
<% end %>
@herb-tools/linter 0.9.4 currently flags these as unused expressions, but they are used.
ViewComponent has a pattern where a slot can be set including the content for the slot within a
<% ... %>tag:@herb-tools/linter0.9.4 currently flags these as unused expressions, but they are used.