<%= content_tag(:div, id: object.id, data: object.data, class: object.classname) do %> <% if object.stat_label.present? %> <%= pb_rails("body", props: { color: "light", text: object.stat_label } ) %> <% end %> <% if object.stat_value.present? %> <%= pb_rails("stat_value", props: object.formatted_stat_value) %> <% end %> <% if object.stat_change.present? %> <%= pb_rails("stat_change", props: object.stat_change) %> <% end %> <% end %>