Sha256: 17e1009f0085f4cf7cf2296d318863dd1968f9e6fe90660c06d8bbbbf77f8cd4

Contents?: true

Size: 1.07 KB

Versions: 402

Compression:

Stored size: 1.07 KB

Contents

<%= content_tag(:label, aria: object.aria,
                        id: object.id,
                        data: object.data,
                        class: object.classname,
                        **combined_html_options
                ) do %>
  <%= content.presence || object.input %>
  <% if object.indeterminate %>
    <span class="pb_checkbox_indeterminate">
      <%= pb_rails("icon", props: { icon: "minus", classname: "indeterminate_icon", fixed_width: true}) %>
      <%= pb_rails("icon", props: { icon: "check", classname: "check_icon hidden", fixed_width: true}) %>
    </span>
  <% else %>
    <span class="pb_checkbox_checkmark">
      <%= pb_rails("icon", props: { icon: "check", classname: "check_icon", fixed_width: true}) %>
      <%= pb_rails("icon", props: { icon: "minus", classname: "indeterminate_icon hidden", fixed_width: true}) %>
    </span>
  <% end %>
  <span class="pb_checkbox_label">
    <%= pb_rails("body", props: { status: object.checkbox_label_status, text: object.text, dark: object.dark, margin_right: object.form_spacing ? "xs" : "" }) %>
  </span>
<% end %>

Version data entries

402 entries across 402 versions & 1 rubygems

Version Path
playbook_ui-13.31.0 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.30.0.pre.alpha.play1367contenttagnoninputkits3159 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.30.0.pre.alpha.20240515remotebuildkitconversion3150 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.30.0.pre.alpha.PBNTR353draggablev53136 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.30.0.pre.alpha.PLAY1328fixtimelinekitglobalpropsreact3096 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.30.0 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.29.0.pre.alpha.removeduplicatekitexampleclass3063 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.29.0.pre.alpha.PBNTR329draggablev33060 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.29.0.pre.alpha.PBNTR329draggablev33059 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.29.0.pre.alpha.testingcollapsibleissue3052 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.29.0 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.28.0.pre.alpha.PBNTR297gradientoverlay3029 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.28.0.pre.alpha.pbntr312tableheaderflexremoval3019 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.28.0.pre.alpha.dialogturbostreameventlistener3017 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.28.0.pre.alpha.PLAY1338alpha3001 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2987 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2986 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2984 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.27.0 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-13.26.0.pre.alpha.PBNTR291Dropdownrailsv22840 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb