Filter panel example

With filter section

Pass filter section component as a block

How it looks (preview)

42 universes

Filter by Filter 1

1 Selected
filter section content

How to call this example

<%= render "components/filter_panel", {
  result_text: "42 universes",
  button_text: "View filter section"
} do %>
  <%= render "components/filter_section", {
  status_text: "1 Selected",
  heading_text: "Filter 1"
} do %>
  <span>filter section content</span>
<% end %>
<% end %>