Sha256: 982e4211163144bff7d23744664d5c2f41d83c2d68ca23133ab625d686d8a7d6
Contents?: true
Size: 1.06 KB
Versions: 54
Compression:
Stored size: 1.06 KB
Contents
<%= content_tag(:div, aria: object.aria, class: object.classname, data: object.data) 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) %> <% if object.error %> <%= pb_rails("body", props: {dark: object.dark, status: "negative", text: object.error}) %> <% end %> <% else %> <%= tag(:input, class: "text_input", data: object.validation_data, id: object.id, name: object.name, pattern: object.validation_pattern, placeholder: object.placeholder, required: object.required, type: object.type, value: object.value) %> <% if object.error %> <%= pb_rails("body", props: {dark: object.dark, status: "negative", text: object.error}) %> <% end %> <% end %> <% end %> <% end %>
Version data entries
54 entries across 54 versions & 1 rubygems