Sha256: 22d6b351becbc3f7e7a5215acd60dd2540d0e5d4da46f16a50c169ce6a27427a

Contents?: true

Size: 659 Bytes

Versions: 4

Compression:

Stored size: 659 Bytes

Contents

<%= content_tag(:div,
    class: object.classname) do %>
  <% if object.label.present? %>
    <%= pb_rails("caption", props: { text: object.label, dark: object.dark, classname: "pb_text_input_kit_label" }) %>
  <% end %>
  <%= content_tag(:div,
      class: "text_input_wrapper") do %>
    <% if object.children.present? %>
      <% capture(&object.children) %>
    <% else %>
      <%= tag(:input,
          id: object.id,
          class: object.classname,
          data: object.data,
          name: object.name,
          placeholder: object.placeholder,
          type: object.type,
          value: object.value) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
playbook_ui-3.4.0 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-3.3.0 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-3.2.0 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-3.1.0 app/pb_kits/playbook/pb_text_input/_text_input.html.erb