Sha256: 120bf9841fbfb5304a336b6f74a658ef6c435ec3a49967af0c010744d35e3906

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

<% if object.custom_children %>
  <div data-pb-radio-children="true">
    <%= 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 %>
        <span class="pb_radio_button"></span>
      <% end %>
      <div data-pb-radio-children-wrapper="true"> <%= content %> </div>
    <% end %>
  </div>
<% 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 %>

      <span class="pb_radio_button"></span>
      <%= pb_rails("body", props: { status: object.body_status, text: object.text, dark: object.dark }) %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
playbook_ui-14.3.2.pre.alpha.PBNTR480radiocustomchildrenprop3759 app/pb_kits/playbook/pb_radio/radio.html.erb