%= content_tag(:div,
id: object.id,
data: object.data,
class: object.classname,
aria: object.aria) do %>
<%= pb_rails("flex", props: {vertical: "center", spacing: "between", cursor: "pointer"}) do %>
<%= pb_rails("flex/flex_item") do %>
<%= content.presence %>
<% end %>
<%= pb_rails("flex/flex_item") do %>
<% if object.icon.present? %>
<%= pb_rails("icon", props: { icon: "#{icon[0]}", id:"collapsible_open_icon", size: object.size }) %>
<%= pb_rails("icon", props: { icon: "#{icon[1]}", id:"collapsible_close_icon", size: object.size }) %>
<% else %>
<%= pb_rails("icon", props: { icon: "chevron-down", id:"collapsible_open_icon", size: object.size }) %>
<%= pb_rails("icon", props: { icon: "chevron-up", id:"collapsible_close_icon", size: object.size }) %>
<% end %>
<% end %>
<% end %>
<% end %>