<% if object.custom_children %>
<%= pb_rails("flex", props: { aria: object.aria, align: "center", class: object.classname, cursor: "pointer", **combined_html_options }) do %> <%= content_tag(:label, checked: object.checked, class: object.classname, data: object.data, id: object.id, value: object.value, **combined_html_options) do %> <%= input %> <% end %>
<%= content %>
<% end %>
<% else %> <%= content_tag(:label, aria: object.aria, checked: object.checked, class: object.classname, data: object.data, id: object.id, value: object.value, **combined_html_options) do %> <% if content.present? %> <%= content %> <% else %> <%= radio_button_tag object.name, object.value, object.selected, object.input_options %> <% end %> <%= pb_rails("body", props: { status: object.body_status, text: object.text, dark: object.dark }) %> <% end %> <% end %>