Sha256: 7a5f83e02da6e696c72cc25f75bd20d6fed8c40304048eaaa16cd60b18e05f1e

Contents?: true

Size: 803 Bytes

Versions: 7

Compression:

Stored size: 803 Bytes

Contents

<div class="ariadne-space-y-2">
  <label
    class="<%= style(:label) %>"
    for="<%= @name %>"><%= @label %></label>
  <% if required? %>
    <span aria-hidden="true">*</span>
  <% end %>

  <%= content_tag(
    :input,
    nil,
    class: html_attrs[:class],
    **html_attrs.except(:class)
  ) %>

  <% if @validation_message %>
    <%= render(Primer::BaseComponent.new(tag: :div, **@validation_arguments)) do %>
      <span class="FormControl-inlineValidation--visual"><%= render(Primer::Beta::Octicon.new(icon: :"alert-fill", size: :xsmall, aria: { hidden: true })) %></span>
      <span><%= @validation_message %></span>
    <% end %>
  <% end %>
  <% if caption? %>
   <p id="<%= @name %>-description" class="<%= style(:caption, theme:, size:, width:) %>"><%= @caption %></p>
  <% end %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.70 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.69 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.68 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.67 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.66 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.65 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.64 app/components/ariadne/form/text_field/component.html.erb